It will install these libraries: ( -> denotes a symlink ) /usr/lib64/libopenjpeg-2.1.3.0.so /usr/lib64/libopenjpeg.so.2 -> libopenjpeg-2.1.3.0.so /usr/lib64/libopenjpeg.a This means that whenever a program does -lopenjpeg, it will get the .a linked in statically. It should install these libraries: /usr/lib64/libopenjpeg.so.2.1.3.0 /usr/lib64/libopenjpeg.so.2 -> libopenjpeg.so.2.1.3.0 /usr/lib64/libopenjpeg.so -> libopenjpeg.so.2 /usr/lib64/libopenjpeg.a Replacement for openjpeg-1.2-Makefile.patch which fixes this problem and removes an extraneous call to ldconfig (portage does this for us) follows.
Created attachment 181485 [details, diff] Fix dynamic linking
Fixed, thanks