Browse Source

IPv6 support should depend on if we've enabled it

Signed-off-by: Imre Kaloz <[email protected]>

SVN-Revision: 38349
Imre Kaloz 12 years ago
parent
commit
430e641a08
1 changed files with 5 additions and 1 deletions
  1. 5 1
      package/libs/libpcap/Makefile

+ 5 - 1
package/libs/libpcap/Makefile

@@ -54,7 +54,6 @@ CONFIGURE_ARGS += \
 	--enable-shared \
 	--enable-static \
 	--disable-yydebug \
-	--enable-ipv6 \
 	--with-build-cc="$(HOSTCC)" \
 	--with-pcap=linux \
 	--without-septel \
@@ -62,6 +61,11 @@ CONFIGURE_ARGS += \
 	--without-libnl \
 	--disable-can
 
+ifeq ($(CONFIG_IPV6),y)
+CONFIGURE_ARGS += \
+	--enable-ipv6
+endif
+
 MAKE_FLAGS += \
 	CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include"