This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How do I link to a shared lib without having that lib's dependencies (the way MS link does)
- From: David Wuertele <dave-gnus at bfnet dot com>
- To: binutils at sources dot redhat dot com
- Date: 25 Apr 2005 16:42:30 -0700
- Subject: Re: How do I link to a shared lib without having that lib's dependencies (the way MS link does)
- Organization: Berkeley Fluent Network
- References: <m34qdutt8d.fsf@bfnet.com> <20050425232858.GA7803@lucon.org>
HJL> Here is something you can try. You need to pass
HJL> -Wl,--ignore-needed libA.so -Wl,--no-ignore-needed
HJL> to gcc.
I was hoping for something simpler that I could give to users of my
SDK. I don't mind warnings, I just mind the erroring out when there
is really no error. Does anyone besides me consider the default
functionality to be broken?
Is the "-Wl,--no-ignore-needed" necessary? Will omitting it cause ld
to ignore linking errors that really are errors?
Thanks,
Dave