libintl may use thread-related functions, so -lpthread must come after
-lintl.
Fixes:
http://autobuild.buildroot.org/results/e9d/
e9d89fd5b24a76a3c5ab9dc8f01f4643f7c13396/
[Peter: use -lpthread in comment as suggested by Arnout]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
AXEL_LICENSE = GPLv2+
AXEL_LICENSE_FILES = COPYING
-AXEL_LDFLAGS = -lpthread
-
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
AXEL_DEPENDENCIES += gettext
AXEL_LDFLAGS += -lintl
endif
+# -lintl may use symbols from -lpthread
+AXEL_LDFLAGS += -lpthread
+
ifneq ($(BR2_ENABLE_LOCALE),y)
AXEL_DISABLE_I18N = --i18n=0
endif