odpic: add to rpath
This commit is contained in:
parent
6081611046
commit
eb0fecf294
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
${stdenv.lib.optionalString (stdenv.isLinux) ''
|
${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) ''
|
${stdenv.lib.optionalString (stdenv.isDarwin) ''
|
||||||
install_name_tool -add_rpath "${libPath}" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
install_name_tool -add_rpath "${libPath}" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
|
|
Loading…
Reference in a new issue