Transitive Linking fails

John (Eljay) Love-Jensen eljay@adobe.com
Mon Mar 15 19:17:00 GMT 2010


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



More information about the Gcc-help mailing list