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 <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b5423c2c3f
commit
198734f00b
@ -12,7 +12,7 @@ POWERTOP_LICENSE_FILES = COPYING
|
|||||||
# We're patching Makefile.am
|
# We're patching Makefile.am
|
||||||
POWERTOP_AUTORECONF = YES
|
POWERTOP_AUTORECONF = YES
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_GETTEXT),y)
|
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
||||||
POWERTOP_DEPENDENCIES += gettext
|
POWERTOP_DEPENDENCIES += gettext
|
||||||
POWERTOP_CONF_ENV += LIBS='-lintl'
|
POWERTOP_CONF_ENV += LIBS='-lintl'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user