see this patch: http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-admin/eselect-opengl/files/eselect-opengl-1.1.1-soname-copy-for-prefix.patch?rev=53824 A few notes about this patch: - it copies the referenced soname file as well as the libGL.so file - upgrade_file removes ${file}* before making a new symlink, so accidentially nuking a previous soname copy, which is what we like - since dylibs have the version before the extension, upgrade_file won't work correctly there, however, due to the different characteristics, we don't need this, so this "bug" is by coincidence exactly what we want - falling back to the ld.so.conf path is more expensive (read + search) than having it early in the default search path (just search), but this is probably an almost unnotable performance difference - Prefix platforms don't have an ld.so.conf in effect, so they rely on RPATH to be able to find all libs, for which we need the copy, since what's in ld.so.conf is not available in the RPATH for the object in question
Fixed in trunk.