This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld --exclude-libs
- From: Andreas Schwab <schwab at suse dot de>
- To: Alan Modra <amodra at gmail dot com>
- Cc: BERTRAND Joël <joel dot bertrand at systella dot fr>, binutils at sourceware dot org
- Date: Thu, 29 Sep 2016 15:46:57 +0200
- Subject: Re: ld --exclude-libs
- Authentication-results: sourceware.org; auth=none
- References: <57ECC887.6020208@systella.fr> <20160929110956.GE4877@bubble.grove.modra.org>
On Sep 29 2016, Alan Modra <amodra@gmail.com> wrote:
> On Thu, Sep 29, 2016 at 09:53:43AM +0200, BERTRAND Joël wrote:
>> g++ -g -O2 -malign-double -mieee-fp -Wall -funsigned-char -g
>> -Wl,--export-dynamic -Wl,--exclude-libs,../tools/openssl-1.1.0b/libcrypto.a:../tools/openssl-1.1.0b/libssl.a
>> -o rpl <all .o> <all .a>
>
> You should just pass the basename of the libraries you'd like to
> exclude, not a full path. -Wl,--exclude-libs,libcrypto.a:libssl.a
Perphaps the linker should error out or at least warn if the names
include slashes?
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."