external_project: Do not set LD in the env

This was breaking some autotools projects such as libyaml.
This commit is contained in:
Xavier Claessens 2021-01-29 10:10:37 -05:00
parent 46b68d4c83
commit 6a6323ff09
1 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,10 @@ class ExternalProject(InterpreterObject):
link_exelist = compiler.get_linker_exelist()
link_args = self.env.coredata.get_external_link_args(MachineChoice.HOST, lang)
if link_exelist:
self.run_env['LD'] = self._quote_and_join(link_exelist)
# FIXME: Do not pass linker because Meson uses CC as linker wrapper,
# but autotools often expects the real linker (e.h. GNU ld).
# self.run_env['LD'] = self._quote_and_join(link_exelist)
pass
self.run_env['LDFLAGS'] = self._quote_and_join(link_args)
self.run_env = self.user_env.get_env(self.run_env)