mirror of
https://git.busybox.net/buildroot.git
synced 2025-01-27 14:54:07 +08:00
fe4b4e9dc3
Set the new WARNFLAGS to "" which has been added since version 0.8.5 and
82f1b164cb
Otherwise, -Werror will raise the following build failure:
/srv/storage/autobuild/run/instance-3/output-1/host/bin/mipsel-linux-gcc --std=gnu99 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -D_FORTIFY_SOURCE=1 -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib\" -DRUN_DIR=\"run\" -MMD -MP -fPIC -I.. -I../../libmultipath/nvme -Wp,-D_FORTIFY_SOURCE=2 -c -o nvme.o nvme.c
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
Fixes:
- http://autobuild.buildroot.org/results/71f7661e7d26ca8608e902eee9f2a92376b00601
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# multipath-tools
|
|
#
|
|
################################################################################
|
|
|
|
MULTIPATH_TOOLS_VERSION = 0.8.5
|
|
MULTIPATH_TOOLS_SITE = $(call github,opensvc,multipath-tools,$(MULTIPATH_TOOLS_VERSION))
|
|
MULTIPATH_TOOLS_LICENSE = LGPL-2.0
|
|
MULTIPATH_TOOLS_LICENSE_FILES = COPYING
|
|
MULTIPATH_TOOLS_DEPENDENCIES = lvm2 json-c readline udev liburcu libaio host-pkgconf
|
|
MULTIPATH_TOOLS_MAKE_OPTS = \
|
|
LIB="lib" \
|
|
RUN="run" \
|
|
OPTFLAGS="" \
|
|
STACKPROT="" \
|
|
WARNFLAGS=""
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
MULTIPATH_TOOLS_DEPENDENCIES += systemd
|
|
MULTIPATH_TOOLS_MAKE_OPTS += ENABLE_SYSTEMD=1
|
|
endif
|
|
|
|
define MULTIPATH_TOOLS_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
$(MULTIPATH_TOOLS_MAKE_OPTS)
|
|
endef
|
|
|
|
define MULTIPATH_TOOLS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
|
|
$(MULTIPATH_TOOLS_MAKE_OPTS) DESTDIR="$(TARGET_DIR)"
|
|
endef
|
|
|
|
define MULTIPATH_TOOLS_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 755 package/multipath-tools/S60multipathd \
|
|
$(TARGET_DIR)/etc/init.d/S60multipathd
|
|
endef
|
|
|
|
$(eval $(generic-package))
|