This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld --exclude-libs


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

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]