This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Transitive Linking fails
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: Erik Rull <erik dot rull at rdsoftware dot de>, GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 15 Mar 2010 10:28:09 -0700
- Subject: Re: Transitive Linking fails
Hi Erik,
I think you need to do it this way:
dir1/*.o dir2/libx.a -> dir3/liby.so
The point to -static is to prefer libx.a rather than libx.so when you ask
for -lx.
By specifying dir2/libx.so, you are bypassing the -static facility because
you are using an explicitly named library.
HTH,
--Eljay