161746ca8f
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>
43 lines
898 B
Makefile
43 lines
898 B
Makefile
################################################################################
|
|
#
|
|
# axel
|
|
#
|
|
################################################################################
|
|
|
|
AXEL_VERSION = 2.4
|
|
AXEL_SITE = http://sources.buildroot.net
|
|
AXEL_LICENSE = GPLv2+
|
|
AXEL_LICENSE_FILES = COPYING
|
|
|
|
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
|
|
|
|
define AXEL_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--debug=1 \
|
|
$(AXEL_DISABLE_I18N) \
|
|
)
|
|
endef
|
|
|
|
define AXEL_BUILD_CMDS
|
|
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define AXEL_INSTALL_TARGET_CMDS
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|