Merge deterministicStdenv into the default stdenv

This means that (on Linux) strip uses
"--enable-deterministic-archives" and ld uses the
BFD_DETERMINISTIC_OUTPUT flag.
This commit is contained in:
Eelco Dolstra
2014-01-07 13:57:42 +01:00
parent fa15851318
commit 320209a618
5 changed files with 17 additions and 930 deletions
+2 -2
View File
@@ -291,7 +291,7 @@ stripDirs() {
for dir in $dirs; do
test -L "$dir" || chmod -R +rw "$dir"
done
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} strip $stripFlags || true
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} strip $commonStripFlags $stripFlags || true
stopNest
fi
}
@@ -759,7 +759,7 @@ fixupPhase() {
GLOBIGNORE=.:..:*.gz:*.bz2
for f in "$out"/share/man/*/* "$out"/share/man/*/*/*; do
if [ -f "$f" -a ! -L "$f" ]; then
if gzip -c "$f" > "$f".gz; then
if gzip -c -n "$f" > "$f".gz; then
rm "$f"
else
rm "$f".gz