summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-03-21 21:48:18 +0000
committerJohn Crispin <john@openwrt.org>2015-03-21 21:48:18 +0000
commit4f44df6fd8f2c404fd5b1534257a7a8c85eb96f5 (patch)
tree654909b3bda98ee4cd2e71a2d4c38ad2a74d6bf4
parentf9f7c80cd2d1aa7e2b4eccc738a30f72c1c45e32 (diff)
downloadmaster-31e0f0ae-4f44df6fd8f2c404fd5b1534257a7a8c85eb96f5.tar.gz
master-31e0f0ae-4f44df6fd8f2c404fd5b1534257a7a8c85eb96f5.tar.bz2
master-31e0f0ae-4f44df6fd8f2c404fd5b1534257a7a8c85eb96f5.zip
package-defaults.mk: set DISABLE_NLS only if not CONFIG_BUILD_NLS
set DISABLE_NLS only if CONFIG_BUILD_NLS NOT set. like DISABLE_IPV6 which depends on CONFIG_IPV6 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> SVN-Revision: 44930
-rw-r--r--include/package-defaults.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 9567e04a7a..e37ab88a31 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -67,7 +67,11 @@ ifneq ($(strip $(PKG_UNPACK)),)
endif
EXTRA_CXXFLAGS = $(EXTRA_CFLAGS)
-DISABLE_NLS:=--disable-nls
+ifeq ($(CONFIG_BUILD_NLS),y)
+ DISABLE_NLS:=
+else
+ DISABLE_NLS:=--disable-nls
+endif
CONFIGURE_PREFIX:=/usr
CONFIGURE_ARGS = \