package/libxml-parser-perl: use the compiler as "LD"
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 9 Sep 2020 21:34:04 +0000 (23:34 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 9 Sep 2020 21:41:12 +0000 (23:41 +0200)
commit43a26d7fe420625da93ec93543f1610dbc2f43c2
tree8507960f28038db2a96b712f73f68a8be62655d6
parent2134df9de4d0bb3c72aa4b12ef8b6f5432337005
package/libxml-parser-perl: use the compiler as "LD"

Since commit efa95b19aeab6bdcd7d5a620e199c2c32cf2516b
("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>
package/libxml-parser-perl/libxml-parser-perl.mk