libglvnd, ocl-icd, vulkan-loader: Remove addOpenGLRunpath where not needed.
For APIs that use driver config files, the config files should point to libraries using absolute paths, so `RUNPATH` should be unnecessary. It is still needed for `libGLX` because that does not use config files but the dispatch library receives just a vendor name from the X server.
This commit is contained in:
committed by
Nikolay Amiantov
parent
ebe711a12f
commit
1bba961e2a
@@ -43,10 +43,11 @@ stdenv.mkDerivation rec {
|
||||
});
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
# Set RUNPATH so that driver libraries in /run/opengl-driver(-32)/lib can be found.
|
||||
# See the explanation in addOpenGLRunpath.
|
||||
# Set RUNPATH so that libGLX can find driver libraries in /run/opengl-driver(-32)/lib.
|
||||
# Note that libEGL does not need it because it uses driver config files which should
|
||||
# contain absolute paths to libraries.
|
||||
postFixup = ''
|
||||
addOpenGLRunpath $out/lib/libGLX.so $out/lib/libEGL.so
|
||||
addOpenGLRunpath $out/lib/libGLX.so
|
||||
'';
|
||||
|
||||
passthru = { inherit (addOpenGLRunpath) driverLink; };
|
||||
|
||||
Reference in New Issue
Block a user