libglvnd built with rpath doesn't load mesa from flatpak extension
Context
libglvnd is built with an rpath, which prevents it from loading mesa from a flatpak extension. libGLX_mesa.0.so is loaded using dlopen which checks the rpath before other locations. Currently working around it by including libglvnd in the extension.
Description
-
make libglvnd libraries not include rpath
Tested with:
host$ flatpak run org.freedesktop.Sdk//18.08
sh-4.4$ readelf -d /usr/lib/x86_64-linux-gnu/libGLX.so.0
Dynamic section at offset 0x11b28 contains 35 entries:
Tag Type Name/Value
...
0x000000000000000f (RPATH) Library rpath: [/usr/lib/x86_64-linux-gnu]
...
Acceptance Criteria
???