This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: 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


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