I'm trying to link my library xxx to a library yyy. I want to link statically so that I don't need to package yyy along with xxx when I deliver xxx. I have two versions of yyy provided by a third-party: libyyy.so and libyyyln.a. So here I go and link with -lyyyln.
I do not get any error message when I link. The dependency on yyyln does not show up when I do "ldd libxxx.so". But "ldd -r libxxx.so" shows that the symbols from yyy are not resolved. "nm libxxx.so" shows that these symbols from yyy are UNDEF.
What am I missing then?
Edit1: I managed to get it to work eventually with "-l /fullpath/libyyyln.a"