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

To reply to this bug, email your comments to 25944 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#25944; Package libtool. (Fri, 03 Mar 2017 05:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "N. Ohkawa" <n.ohkawa <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Fri, 03 Mar 2017 05:21:02 GMT) Full text and rfc822 format available.

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 174 days ago.

Previous Next


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