Missing -rpath-link with static library in mix
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Using attached project, I get a link error:
/usr/bin/ld: warning: libshareda.so, needed by .../build/subdir/libsharedb.so, not found (try using -rpath or -rpath-link)
.../build/subdir/libsharedb.so: undefined reference to `shareda()'
Somehow a needed -rpath-link
is dropped instead of pushed through the usage of a static library.
This was found when some newer Linux distributions have the --as-needed
linker flag on by default.
I added the --no-undefined
linker flag to help show that the bug isn't in the code.
Edited by Brad King