package/axel: fix link order
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 14 Aug 2016 13:51:09 +0000 (15:51 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Aug 2016 06:11:44 +0000 (08:11 +0200)
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>
package/axel/axel.mk

index 6328d997e1375ca5b39b8ef3017584ad4e206a0d..25357a379bcc4d9548ff3eb6d490b0be701a2c6c 100644 (file)
@@ -9,13 +9,14 @@ AXEL_SITE = http://sources.buildroot.net
 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