forked from mirrors/nixpkgs
dropbox: leave RPATH-shrinking to patchelf setup hook
(cherry picked from commit 2e591bac0d
)
This commit is contained in:
parent
152c9ed87f
commit
bf66a181fe
|
@ -68,7 +68,6 @@ in stdenv.mkDerivation {
|
|||
|
||||
sourceRoot = ".dropbox-dist";
|
||||
|
||||
dontPatchELF = true; # patchelf invoked explicitly below
|
||||
nativeBuildInputs = [ makeQtWrapper patchelf ];
|
||||
dontStrip = true; # already done
|
||||
|
||||
|
@ -121,9 +120,6 @@ in stdenv.mkDerivation {
|
|||
oldRPATH=$(patchelf --print-rpath "$obj")
|
||||
patchelf --set-rpath "''${oldRPATH:+$oldRPATH:}$RPATH" "$obj"
|
||||
|
||||
echo "shrinking RPATH in $type $obj"
|
||||
patchelf --shrink-rpath "$obj"
|
||||
|
||||
else
|
||||
|
||||
echo "unknown ELF type \"$type\"; not patching $obj"
|
||||
|
|
Loading…
Reference in a new issue