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
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0zhrwj1gi90x2w8gaaaw5h4b969a8gfy244kn0drrplhhb1nqz3b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig addOpenGLRunpath ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ cmake python3 xlibsWrapper libxcb libXrandr libXext wayland ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -30,12 +30,6 @@ 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.
|
||||
postFixup = ''
|
||||
addOpenGLRunpath $out/lib/libvulkan.so
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "LunarG Vulkan loader";
|
||||
homepage = https://www.lunarg.com;
|
||||
|
||||
Reference in New Issue
Block a user