GNU bug report logs - #25944
libtool link mode execution ignores --target=* option

Previous Next

Package: libtool;

Reported by: "N. Ohkawa" <n.ohkawa <at> gmail.com>

Date: Fri, 3 Mar 2017 05:21:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "N. Ohkawa" <n.ohkawa <at> gmail.com>
To: bug-libtool <at> gnu.org
Subject: libtool link mode execution ignores --target=* option
Date: Fri, 3 Mar 2017 14:19:13 +0900
[Message part 1 (text/plain, inline)]
Hi,


I try to cross-compile my lib using clang and target toolchain.
In link phase, I get this error.

clang-3.9: error: unable to execute command: Executable "ld" doesn't exist!
clang-3.9: error: linker command failed with exit code 1 (use -v to see
invocation)

'make' command try to link by

/bin/bash ../libtool  --tag=CC   --mode=link clang [options include
--target=target-host-prefix]

And then, 'libtool' script executes

clang [options without --target=target-host-prefix]

So, clang try to use 'ld' unexpectedly, not 'target-host-prefix-ld'.
libtool script drops --target=* at the func_mode_link function.
I think --target=* should be passed through unchanged,
like --sysroot=*, -stdlib=* and other options.


Regards,
Noriyuki
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.