python-3.5: Also remove -L flags

This reduces the Python closure size by another 10 MiB.
This commit is contained in:
Eelco Dolstra 2016-09-01 16:01:36 +02:00
parent 02bae39132
commit fdd7399a3c

@ -99,7 +99,7 @@ stdenv.mkDerivation {
# Get rid of retained dependencies on -dev packages, and remove
# some $TMPDIR references to improve binary reproducibility.
for i in $out/lib//python${majorVersion}/_sysconfigdata.py $out/lib/python${majorVersion}/config-${majorVersion}m/Makefile; do
sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
done
# FIXME: should regenerate this.