43a26d7fe4
Since commit efa95b19ae
("package/libxml-parser-perl: make host build use correct compiler"),
we pass $(HOST_CONFIGURE_OPTS) when building host-libxml-parser-perl,
in order to use the correct host compiler.
However, this means that LD="$(HOSTLD)" is passed. However, the
host-libxml-parser-perl passes compiler arguments to LD, so it really
assumes that LD is gcc, not ld. For example, it tries to pass
-mtune=generic.
So, let's tell host-libxml-parser-perl that LD is "$(HOSTCC)".
Fixes:
http://autobuild.buildroot.net/results/2ed2e5ccefe9047c597f84d5880de2e8de2bdd94/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libxml-parser-perl
|
|
#
|
|
################################################################################
|
|
|
|
LIBXML_PARSER_PERL_VERSION = 2.46
|
|
LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz
|
|
LIBXML_PARSER_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR
|
|
HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat
|
|
LIBXML_PARSER_PERL_LICENSE = Artistic or GPL-1.0+
|
|
LIBXML_PARSER_PERL_LICENSE_FILES = README
|
|
LIBXML_PARSER_PERL_RUN_PERL = `which perl`
|
|
|
|
HOST_LIBXML_PARSER_PERL_CONFIGURE_OPTS = \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
LD="$(HOSTCC)"
|
|
|
|
define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS
|
|
(cd $(@D) ; \
|
|
$(HOST_LIBXML_PARSER_PERL_CONFIGURE_OPTS) \
|
|
$(LIBXML_PARSER_PERL_RUN_PERL) Makefile.PL \
|
|
PREFIX=$(HOST_DIR) \
|
|
EXPATLIBPATH=$(HOST_DIR)/lib \
|
|
EXPATINCPATH=$(HOST_DIR)/include \
|
|
INSTALLDIRS=site \
|
|
INSTALLSITELIB=$(HOST_DIR)/lib/perl \
|
|
INSTALLSITEARCH=$(HOST_DIR)/lib/perl \
|
|
)
|
|
endef
|
|
|
|
define HOST_LIBXML_PARSER_PERL_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_LIBXML_PARSER_PERL_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define HOST_LIBXML_PARSER_PERL_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|