For some reason wxGTK seems to link against both the system and the prefix libjpeg and this causes some issues. $ ldd libwx_gtk2u_core-2.8.so | grep jpeg libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002ad0c67f1000) libjpeg.so.7 => /home/user-pool/users/sw6400/rc6488/gentoo/usr/lib/libjpeg.so.7 (0x00002ad0ca5ae000) Reproducible: Always Steps to Reproduce:
Can you run an ldd -v to see which lib is pulled in which causes the indirect reference to the non-prefix jpeg lib? That lib is the one we need to fix.
libjpeg.so.62 is the one which is linked directly... libjpeg.so.7 is linked via libtiff.so.3 so it seems to be wxGTK that's the problem rather than its deps...
good, then the search is for the build.log of wxgtk to see where the host lib path is being pulled in
I think I found a possible reason why this happened, wxGTK's configure script is a nice hell for Prefix.
fixed by disabling upstream's libdir-name detection, Gentoo (Prefix) knows best ;)