QA Notice: Missing gen_usr_ldscript
If you have a shared library in /lib/
and a static
library in /usr/lib/
, but no linker script in
/usr/lib/
, then the toolchain will choose the incorrect
version when linking. The system linker will find the static library first
and not bother searching for a dynamic version. To overcome this, you need
to use the gen_usr_ldscript function found in the
toolchain-funcs.eclass. Refer to the
man page for information on how to use it. See this
bug report for some history
on this issue.