patch-nupkgs: use --add-rpath instead of --set-rpath
This avoids stripping $ORIGIN from libs that need it.
This commit is contained in:
parent
41a076e9d4
commit
b2c788ad1b
|
@ -51,7 +51,7 @@ in writeShellScriptBin "patch-nupkgs" ''
|
|||
--set-interpreter "${stdenv.cc.bintools.dynamicLinker}" \
|
||||
"$tmp" ||:
|
||||
patchelf \
|
||||
--set-rpath "${binaryRPath}" \
|
||||
--add-rpath "${binaryRPath}" \
|
||||
"$tmp" ||:
|
||||
mv "$tmp" "$p"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue