package/xscreensaver: fix linking with intl
authorRomain Naour <romain.naour@openwide.fr>
Wed, 27 Aug 2014 21:53:21 +0000 (23:53 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 30 Aug 2014 22:07:32 +0000 (00:07 +0200)
commit529276220621d87084535f28b55a7ff80128dd57
tree7205dad2562280516897a6fed0b1372cfdf03ad4
parent172e62be9845fa8c5f92b524cef1c92ef6444c4c
package/xscreensaver: fix linking with intl

xscreensaver doesn'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.

If "LIBS=-lintl" is removed from XSCREENSAVER_CONF_ENV, then the -lintl is
missing during xscreensaver build if the toolchain needs gettext.

xscreensaver.o: In function `main':
undefined reference to `libintl_bindtextdomain'
undefined reference to `libintl_textdomain'

Backport a patch applied in 5.28 that fix linking issue with intl and remove
"LIBS=-lintl" from XSCREENSAVER_CONF_ENV.

Note:
gettext package is always selected with xscreensaver when BR2_NEEDS_GETTEXT is
set due to dependencies on libgtk2 and libglib2.

Fixes:
http://autobuild.buildroot.net/results/39b/39b6ad07ad59d87afeca6e427c69f580bed35700/build-end.log

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/xscreensaver/Config.in
package/xscreensaver/xscreensaver-0003-driver-fix-linking-with-lintl.patch [new file with mode: 0644]
package/xscreensaver/xscreensaver.mk