ebtables: build ipv6 extension only if needed

arm-ng
pedro 6 years ago committed by kille72
parent 37bcf3ed06
commit 92fbfa9cbe

@ -1766,12 +1766,16 @@ wanuptime-install:
$(STRIP) $(INSTALLDIR)/wanuptime/usr/sbin/wanuptime
ebtables/stamp-h1: dummy
ifeq ($(TCONFIG_IPV6),y)
mv patches/ebtables/104-do-not-build-ipv6-extension.patch patches/ebtables/104-do-not-build-ipv6-extension.patch.tmp || true
else
mv patches/ebtables/104-do-not-build-ipv6-extension.patch.tmp patches/ebtables/104-do-not-build-ipv6-extension.patch || true
endif
$(call patch_files,ebtables)
cd $(TOP)/ebtables && CC=$(CC) LD=$(LD) STRIP=$(CROSS_COMPILE)strip \
./autogen.sh && \
cd $(TOP)/ebtables && ./autogen.sh && \
$(CONFIGURE) --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib \
CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections" \
LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
LOCKFILE="/var/lock/ebtables"
touch ebtables/stamp-h1

@ -0,0 +1,11 @@
--- ebtables/Makefile.am
+++ ebtables/Makefile.am
@@ -35,7 +35,7 @@ lib_LTLIBRARIES = libebtc.la
communication.c ebtables.c getethertype.c \
libebtc.c useful_functions.c \
extensions/ebt_arp.c \
- extensions/ebt_arpreply.c extensions/ebt_ip.c extensions/ebt_ip6.c \
+ extensions/ebt_arpreply.c extensions/ebt_ip.c \
extensions/ebt_limit.c extensions/ebt_log.c extensions/ebt_mark.c \
extensions/ebt_nat.c \
extensions/ebt_pkttype.c extensions/ebt_redirect.c \
Loading…
Cancel
Save