ndisc6: only needs gettext if locale is selected
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 1 Nov 2012 04:35:50 +0000 (04:35 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 6 May 2013 22:23:55 +0000 (00:23 +0200)
Also add missing select in Config.in.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/ndisc6/Config.in
package/ndisc6/ndisc6.mk

index 126bfa2bb8281a3f445e9246745c7caf3ef92128..6abe4ce2ea8dbbb4f6df9d4063443e5d4e9e5f5c 100644 (file)
@@ -4,6 +4,7 @@ comment "ndisc6 requires a toolchain with IPv6 support"
 config BR2_PACKAGE_NDISC6
        bool "ndisc6 tools"
        depends on BR2_INET_IPV6
+       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        help
          NDisc6 is a small collection of useful tools for IPv6 networking
 
index f58cc13beab51d93feb6d87be69082ba0e6d450e..1d3c0e7205796c9485999683e9ec457a71a456b6 100644 (file)
@@ -10,7 +10,7 @@ NDISC6_SITE = http://www.remlab.net/files/ndisc6/
 NDISC6_CONF_ENV = CC="$(TARGET_CC) -std=gnu99"
 NDISC6_CONF_OPT = --localstatedir=/var --disable-rpath --disable-suid-install
 
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
 NDISC6_DEPENDENCIES += gettext
 NDISC6_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
 endif