Move RPATH shrinking from stdenv to a setup hook provided by patchelf
This commit is contained in:
@@ -702,19 +702,6 @@ checkPhase() {
|
||||
}
|
||||
|
||||
|
||||
patchELF() {
|
||||
# Patch all ELF executables and shared libraries.
|
||||
header "patching ELF executables and libraries"
|
||||
if [ -e "$prefix" ]; then
|
||||
find "$prefix" \( \
|
||||
\( -type f -a -name "*.so*" \) -o \
|
||||
\( -type f -a -perm +0100 \) \
|
||||
\) -print -exec patchelf --shrink-rpath '{}' \;
|
||||
fi
|
||||
stopNest
|
||||
}
|
||||
|
||||
|
||||
patchShebangs() {
|
||||
# Rewrite all script interpreter file names (`#! /path') under the
|
||||
# specified directory tree to paths found in $PATH. E.g.,
|
||||
@@ -886,10 +873,6 @@ _defaultFixupOutput() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$havePatchELF" = 1 -a -z "$dontPatchELF" ]; then
|
||||
patchELF "$prefix"
|
||||
fi
|
||||
|
||||
if [ -z "$dontPatchShebangs" ]; then
|
||||
patchShebangs "$prefix"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user