* fixupPhase: don't barf if the output doesn't exist yet.

svn path=/nixpkgs/branches/stdenv-updates/; revision=11177
This commit is contained in:
Eelco Dolstra 2008-03-18 10:28:17 +00:00
parent aaeed176c5
commit 68d08cd70d

View File

@ -645,10 +645,12 @@ checkPhase() {
patchELF() {
# Patch all ELF executables and shared libraries.
header "patching ELF executables and libraries"
find "$prefix" \( \
\( -type f -a -name "*.so*" \) -o \
\( -type f -a -perm +0100 \) \
\) -print -exec patchelf --shrink-rpath {} \;
if test -e "$prefix"; then
find "$prefix" \( \
\( -type f -a -name "*.so*" \) -o \
\( -type f -a -perm +0100 \) \
\) -print -exec patchelf --shrink-rpath {} \;
fi
stopNest
}