From 198734f00ba858bd9d562aaa2e71ae76248b899e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 21 Mar 2015 09:39:22 +0100 Subject: [PATCH] powertop: only link against -lintl when needed BR2_PACKAGE_GETTEXT=y might be enabled even if BR2_NEEDS_GETTEXT is not set, and in this case, we should not link against libintl, because it may not exist, for example with glibc toolchains. Fixes: http://autobuild.buildroot.net/results/270/270018e2c9e3845a4015faa155325eea2cabe3d9/ Signed-off-by: Thomas Petazzoni --- package/powertop/powertop.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/powertop/powertop.mk b/package/powertop/powertop.mk index 43d70a30ad..b253a5668a 100644 --- a/package/powertop/powertop.mk +++ b/package/powertop/powertop.mk @@ -12,7 +12,7 @@ POWERTOP_LICENSE_FILES = COPYING # We're patching Makefile.am POWERTOP_AUTORECONF = YES -ifeq ($(BR2_PACKAGE_GETTEXT),y) +ifeq ($(BR2_NEEDS_GETTEXT),y) POWERTOP_DEPENDENCIES += gettext POWERTOP_CONF_ENV += LIBS='-lintl' endif -- 2.30.2