* Don't patch symlinked shared libraries.

svn path=/nixpkgs/trunk/; revision=3195
This commit is contained in:
Eelco Dolstra 2005-06-17 13:46:04 +00:00
parent 98761b883a
commit 0a2f531aea
2 changed files with 3 additions and 12 deletions

View File

@ -535,8 +535,9 @@ checkPhase() {
patchELF() {
# Patch all ELF executables and shared libraries.
header "patching ELF executables and libraries"
find "$prefix" \( -name "*.so*" -o \
header "patching ELF executables and libraries (BLA)"
find "$prefix" \( \
\( -type f -a -name "*.so*" \) -o \
\( -type f -a -perm +0100 \) \
\) -exec patchelf --shrink-rpath {} \;
stopNest

View File

@ -6,16 +6,6 @@ preBuild() {
make -f Makefile-libbz2_so
}
patchELF() {
# Patch all ELF executables and shared libraries.
header "patching ELF executables and libraries (BLA)"
find "$prefix" \( \
\( -type f -a -name "*.so*" \) -o \
\( -type f -a -perm +0100 \) \
\) -exec patchelf --shrink-rpath {} \;
stopNest
}
preInstall=preInstall
preInstall() {
ensureDir $out/lib