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