* Strip in libexec.
* In stripDirs: use xargs -r, otherwise when there is nothing to strip, strip prints its help text. Harmless but annoying. svn path=/nixpkgs/trunk/; revision=13492
This commit is contained in:
parent
85fa8661e3
commit
8bcfad7e9c
@ -255,7 +255,7 @@ stripDirs() {
|
|||||||
|
|
||||||
if test -n "${dirs}"; then
|
if test -n "${dirs}"; then
|
||||||
header "stripping (with flags $stripFlags) in $dirs"
|
header "stripping (with flags $stripFlags) in $dirs"
|
||||||
find $dirs -type f -print0 | xargs -0 strip $stripFlags || true
|
find $dirs -type f -print0 | xargs -0 -r strip $stripFlags || true
|
||||||
stopNest
|
stopNest
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -713,7 +713,7 @@ fixupPhase() {
|
|||||||
|
|
||||||
# TODO: strip _only_ ELF executables, and return || fail here...
|
# TODO: strip _only_ ELF executables, and return || fail here...
|
||||||
if test -z "$dontStrip"; then
|
if test -z "$dontStrip"; then
|
||||||
stripDebugList=${stripDebugList:-lib bin sbin}
|
stripDebugList=${stripDebugList:-lib libexec bin sbin}
|
||||||
if test -n "$stripDebugList"; then
|
if test -n "$stripDebugList"; then
|
||||||
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
|
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user