5292762206
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>
26 lines
855 B
Makefile
26 lines
855 B
Makefile
################################################################################
|
|
#
|
|
# xscreensaver
|
|
#
|
|
################################################################################
|
|
|
|
XSCREENSAVER_VERSION = 5.22
|
|
XSCREENSAVER_SITE = http://www.jwz.org/xscreensaver
|
|
|
|
# N.B. GPLv2+ code (in the hacks/glx subdirectory) is not currently built.
|
|
XSCREENSAVER_LICENSE = MIT-like GPLv2+
|
|
XSCREENSAVER_LICENSE_FILES = hacks/screenhack.h hacks/glx/chessmodels.h
|
|
|
|
XSCREENSAVER_DEPENDENCIES = jpeg libglade libgtk2 xlib_libX11 xlib_libXt \
|
|
$(if $(BR2_PACKAGE_GETTEXT),gettext)
|
|
|
|
# otherwise we end up with host include/library dirs passed to the
|
|
# compiler/linker
|
|
XSCREENSAVER_CONF_OPT = \
|
|
--includedir=$(STAGING_DIR)/usr/include \
|
|
--libdir=$(STAGING_DIR)/usr/lib
|
|
|
|
XSCREENSAVER_INSTALL_TARGET_OPT = install_prefix="$(TARGET_DIR)" install
|
|
|
|
$(eval $(autotools-package))
|