summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-25 21:45:51 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-25 21:45:51 +0000
commit53ea39ed02d1a5d98e5d4db859c036af9506adce (patch)
tree05880aec9c25779e83d6897331dd4fbd1dcaf357
parent1a5fdf719af25ac09819926cd36470875a75d317 (diff)
[package] globally define IPv6 support or not in OpenWrt, just like for largefiles, ipv6 disabled by default (#4857)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16983 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Config.in7
-rw-r--r--include/package-defaults.mk4
-rw-r--r--rules.mk14
3 files changed, 21 insertions, 4 deletions
diff --git a/Config.in b/Config.in
index d7ce63e46..18aafda3a 100644
--- a/Config.in
+++ b/Config.in
@@ -142,6 +142,13 @@ config DEBUG_DIR
This will install all compiled package binaries into build_dir/target-*/debug-*/,
useful for cross-debugging via gdb/gdbserver
+config IPV6
+ bool
+ prompt "Enable IPv6 support in packages"
+ default n
+ help
+ Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
+
comment "Kernel build options"
config KERNEL_KALLSYMS
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 753c10227..3cba736f0 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -60,7 +60,9 @@ CONFIGURE_ARGS = \
--localstatedir=/var \
--mandir=$(CONFIGURE_PREFIX)/man \
--infodir=$(CONFIGURE_PREFIX)/info \
- $(DISABLE_NLS)
+ $(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
+ $(DISABLE_IPV6)
CONFIGURE_VARS = \
$(TARGET_CONFIGURE_OPTS) \
diff --git a/rules.mk b/rules.mk
index 05609b9ac..3f39eefd7 100644
--- a/rules.mk
+++ b/rules.mk
@@ -153,13 +153,21 @@ else
endif
ifeq ($(CONFIG_ENABLE_LOCALE),true)
- DISABLE_NLS:=
+ DISABLE_NLS:=--enable-nls
else
DISABLE_NLS:=--disable-nls
endif
-ifneq ($(CONFIG_LARGEFILE),y)
- DISABLE_LARGEFILE= --disable-largefile
+ifeq ($(CONFIG_IPV6),y)
+ DISABLE_IPV6:=--enable-ipv6
+else
+ DISABLE_IPV6:=--disable-ipv6
+endif
+
+ifeq ($(CONFIG_LARGEFILE),y)
+ DISABLE_LARGEFILE:=
+else
+ DISABLE_LARGEFILE:=--disable-largefile
endif
ifeq ($(CONFIG_TAR_VERBOSITY),y)