[OpenWrt-Devel] [PATCH] package-defaults.mk: set DISABLE_NLS only if not CONFIG_BUILD_NLS

Christian Schoenebeck christian.schoenebeck at gmail.com
Fri Feb 20 05:24:44 EST 2015


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 at gmail.com>
---
 include/package-defaults.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 6a345b6..35be6cf 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 = \
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list