quota: fix build on uClibc with locale support
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 28 Jun 2012 14:56:45 +0000 (16:56 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 28 Jun 2012 14:56:45 +0000 (16:56 +0200)
Fixes http://autobuild.buildroot.net/results/508f2ee3f97dfdf782eb1c0b03c2fffb87c4953f

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/quota/Config.in
package/quota/quota.mk

index dfefb8a1880fe5ecfb2dcc4b2169a0bd4c987b13..6c2beff04c021e635e4833bbce99643459a7f559 100644 (file)
@@ -5,6 +5,8 @@ config BR2_PACKAGE_QUOTA
        depends on BR2_USE_WCHAR
        select BR2_PACKAGE_UTIL_LINUX
        select BR2_PACKAGE_UTIL_LINUX_MOUNT
+       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
+       select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
        help
          Implementation of the disk quota system.
 
index 845eefbaa5ec7a45027c6c5895ba82de2ad11a63..971523076b43712cf2b2c4b53b6f4787a3925922 100644 (file)
@@ -10,6 +10,11 @@ QUOTA_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/linuxqu
 
 QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
 
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
+QUOTA_DEPENDENCIES = gettext libintl
+QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
+endif
+
 # Package uses autoconf but not automake.
 QUOTA_INSTALL_TARGET_OPT = \
        ROOTDIR=$(TARGET_DIR) \