mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
odpic: add to rpath
This commit is contained in:
parent
6081611046
commit
eb0fecf294
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postFixup = ''
|
||||
${stdenv.lib.optionalString (stdenv.isLinux) ''
|
||||
patchelf --set-rpath "${libPath}" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
patchelf --set-rpath "${libPath}:$(patchelf --print-rpath $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary})" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
''}
|
||||
${stdenv.lib.optionalString (stdenv.isDarwin) ''
|
||||
install_name_tool -add_rpath "${libPath}" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
|
Loading…
Reference in New Issue
Block a user