diffutils: fix configure cache issue with BR2_NEEDS_GETTEXT
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 27 Jul 2010 07:19:45 +0000 (09:19 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 27 Jul 2010 07:20:59 +0000 (09:20 +0200)
Like flex, diffutils doesn't NEED gettext/libintl, but it's configure script
checks for it, so make sure those a built before diffutils, otherwise it
will populate tgt-config.cache with invalid values, breaking the build of
other packages needing it (like libglib2).

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

index c0b38307132b00a239acc5513ae55193490c28f9..6ce71c927043036240993f6ce84ec1e1438ec99d 100644 (file)
@@ -9,6 +9,10 @@ DIFFUTILS_SITE:=$(BR2_GNU_MIRROR)/diffutils
 
 DIFFUTILS_INSTALL_STAGING = YES
 
+DIFFUTILS_DEPENDENCIES = \
+       $(if $(BR2_PACKAGE_GETTEXT),gettext) \
+       $(if $(BR2_PACKAGE_LIBINTL),libintl)
+
 DIFFUTILS_CONF_ENV = ac_cv_func_strtod=yes
                ac_fsusage_space=yes \
                fu_cv_sys_stat_statfs2_bsize=yes \