mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 04:57:29 +00:00
Merge #224857: mesa: fix zink by patching RPATH so it finds libvulkan.so
...into staging-next
This commit is contained in:
commit
bb320adc88
@ -329,6 +329,10 @@ self = stdenv.mkDerivation {
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $lib):$drivers/lib" "$lib"
|
||||
fi
|
||||
done
|
||||
# add RPATH here so Zink can find libvulkan.so
|
||||
${lib.optionalString haveZink ''
|
||||
patchelf --add-rpath ${vulkan-loader}/lib $drivers/lib/dri/zink_dri.so
|
||||
''}
|
||||
'';
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-fno-common" ] ++ lib.optionals enableOpenCL [
|
||||
|
Loading…
Reference in New Issue
Block a user