]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/ltris: fix linking with intl
authorRomain Naour <romain.naour@openwide.fr>
Tue, 19 Aug 2014 17:43:56 +0000 (19:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 21 Aug 2014 13:36:01 +0000 (15:36 +0200)
ltris doen't build with (e)glibc toolchain since commit 454a41016f2f074b69e2c677f4749c213c653e86
when gettext package is selected.

With (e)glibc libintl is provided by the libc whereas with uClibc it's provided by gettext.

Linking with intl is only needed if the toolchain needs gettext and locale is set.

Fixes:
http://autobuild.buildroot.net/results/821/82128cb9f5cd6ae2595a8302462f1b5719dad9f7/build-end.log

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ltris/ltris.mk

index 75b6ad0ffcbfb93810a205d070f0a3dafdf962da..c9fe5c7d6af708e2943c50a3e3de3afc2190f896 100644 (file)
@@ -21,7 +21,7 @@ else
 LTRIS_CONF_OPT += --disable-audio
 endif
 
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
 LTRIS_DEPENDENCIES += gettext
 LTRIS_CONF_ENV += LIBS=-lintl
 endif