Skip to contentSkip to conversation

powertop: only link against -lintl when needed

Buildroot Thomas Petazzoni 1 participant 1 message Mar 21, 2015

lore
Share & tools
lore
#0 lore raw

commit: http://git.buildroot.net/buildroot/commit/?id=198734f00ba858bd9d562aaa2e71ae76248b899e
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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/

---
 package/powertop/powertop.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/powertop/powertop.mk +1 -1
index 43d70a3..b253a56 100644
@@ -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