Skip to contentSkip to conversation

package/lbreakout2: fix linking with intl

PATCH New Romain Naour 2 participants 2 messages Aug 20, 2014 – Aug 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lbreakout2: fix linking with intl

lbreakout2 doen't build with (e)glibc toolchain 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/a77/a77dd3e18cc4a5e8300ab33eb532cc03d0156f7f/build-end.log

---
 package/lbreakout2/lbreakout2.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/lbreakout2/lbreakout2.mk +1 -1
index 8f4e27d..6087ca6 100644
@@ -14,7 +14,7 @@ LBREAKOUT2_DEPENDENCIES = sdl libpng
 LBREAKOUT2_CONF_ENV = \
 	SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
 
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
 LBREAKOUT2_DEPENDENCIES += gettext
 LBREAKOUT2_CONF_ENV += LIBS=-lintl
 endif
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 package/lbreakout2: fix linking with intl

Dear Romain Naour,

Quoted 6 lines · Romain Naour

lbreakout2 doen't build with (e)glibc toolchain 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.

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/a77/a77dd3e18cc4a5e8300ab33eb532cc03d0156f7f/build-end.log

---
 package/lbreakout2/lbreakout2.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com