Transitive Linking fails

Erik Rull erik.rull@rdsoftware.de
Mon Mar 15 17:28:00 GMT 2010


Hi all,

I want to do the following:
dir1/*.o dir2/libx.so -> dir3/liby.so where dir2/libx.so is statically 
linked (using -static in the linker command).
It seems to work until the liby.so is linked against other code:
dir4/*.o dir3/liby.so -> dir5/app
There, the linker complains that it doesn't know anything about 
dir2/libx.so, but I want this lib to be statically linked into the liby.so 
so that no application needs to care about where the object code from 
libx.so comes from.

What is my fault here? Any ideas?

Best regards,

Erik



More information about the Gcc-help mailing list