This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linking question
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Karsten Fuhrmann <karsten_fuhrmann at cartoon-film dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 21 Dec 2004 08:09:49 -0800
- Subject: Re: linking question
- References: <477BCD18-5369-11D9-AEBF-000A95DC1E96@cartoon-film.de>
On Tue, Dec 21, 2004 at 04:59:22PM +0100, Karsten Fuhrmann wrote:
> Hello,
> I want to compile a c program with both static and dynamic linking in
> the same program, e.g. i want to link against LIB_A static but against
> LIB_B shared.
> I dicovered the static and dy options in ld but it seems to me that it
> is only possible to link at whole static or dynamic, but not mixed.
# gcc ... -Wl,-Bstatic -la -Wl,-Bdynamic -lb
H.J.