![Fabrice Fontaine](/assets/img/avatar_default.png)
ndisc needs c11 because of alignas since version 1.0.4 and https://git.remlab.net/gitweb/?p=ndisc6.git;a=commit;h=d917e5172531dd72e896b317c07f64274e8024a1 https://git.remlab.net/gitweb/?p=ndisc6.git;a=commit;h=77a2efc350fdd52b76b1a4c874ec4029e722048b So replace -std=gnu99 by -std=c11 and add a dependency on gcc 4.7 This will fix build with gcc 8 Fixes: - http://autobuild.buildroot.org/results/1cab1e5f7c4250a153fd1ab758f818078833972f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# ndisc6
|
|
#
|
|
################################################################################
|
|
|
|
NDISC6_VERSION = 1.0.4
|
|
NDISC6_SOURCE = ndisc6-$(NDISC6_VERSION).tar.bz2
|
|
NDISC6_SITE = http://www.remlab.net/files/ndisc6
|
|
NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=c11" LIBS=$(TARGET_NLS_LIBS)
|
|
NDISC6_CONF_OPTS = --disable-rpath --disable-suid-install
|
|
NDISC6_LICENSE = GPL-2.0 or GPL-3.0
|
|
NDISC6_LICENSE_FILES = COPYING
|
|
NDISC6_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
NDISC6_BIN_ += dnssort # perl script
|
|
NDISC6_BIN_$(BR2_PACKAGE_NDISC6_NAME2ADDR) += name2addr addr2name
|
|
NDISC6_BIN_$(BR2_PACKAGE_NDISC6_TCPSPRAY) += tcpspray tcpspray6
|
|
|
|
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_NDISC6) += ndisc6
|
|
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_RDISC6) += rdisc6
|
|
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_RDNSSD) += rdnssd
|
|
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_RLTRACEROUTE6) += rltraceroute6 tracert6
|
|
NDISC6_SBIN_$(BR2_PACKAGE_NDISC6_TCPTRACEROUTE6) += tcptraceroute6
|
|
|
|
define NDISC6_REMOVE_UNNEEDED
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/,$(NDISC6_BIN_)) \
|
|
$(addprefix $(TARGET_DIR)/usr/sbin/,$(NDISC6_SBIN_))
|
|
$(if $(BR2_PACKAGE_NDISC6_RDNSSD),,\
|
|
rm -rf $(TARGET_DIR)/etc/rdnssd $(TARGET_DIR)/var/run/rdnssd)
|
|
endef
|
|
|
|
NDISC6_POST_INSTALL_TARGET_HOOKS += NDISC6_REMOVE_UNNEEDED
|
|
|
|
$(eval $(autotools-package))
|