* Don't store the GCC configure flags in the output (visible through
`gcc -v'). It causes build-time only dependencies to be unnecessarily retained in the closure (e.g. PPL due to `--with-ppl=/nix/store/...'). * Replace $out/bin/c++ with a symlink to g++. svn path=/nixpkgs/branches/stdenv-updates/; revision=22966
This commit is contained in:
parent
50f337ad01
commit
5119fac40e
@ -143,6 +143,7 @@ if test -n "$targetConfig"; then
|
|||||||
dontStrip=1
|
dontStrip=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
preConfigure() {
|
preConfigure() {
|
||||||
if test -n "$newlibSrc"; then
|
if test -n "$newlibSrc"; then
|
||||||
tar xvf "$newlibSrc" -C ..
|
tar xvf "$newlibSrc" -C ..
|
||||||
@ -172,6 +173,12 @@ preConfigure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
postConfigure() {
|
||||||
|
# Don't store the configure flags in the resulting executables.
|
||||||
|
sed -e '/TOPLEVEL_CONFIGURE_ARGUMENTS=/d' -i Makefile
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
postInstall() {
|
postInstall() {
|
||||||
# Remove precompiled headers for now. They are very big and
|
# Remove precompiled headers for now. They are very big and
|
||||||
# probably not very useful yet.
|
# probably not very useful yet.
|
||||||
@ -200,7 +207,7 @@ postInstall() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in $out/bin/*-c++* $out/bin/*-g++*; do
|
for i in $out/bin/c++ $out/bin/*-c++* $out/bin/*-g++*; do
|
||||||
if cmp -s $out/bin/g++ $i; then
|
if cmp -s $out/bin/g++ $i; then
|
||||||
ln -sfn g++ $i
|
ln -sfn g++ $i
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user