* Add --disable-dependency-tracking to the configure flags if

possible.  This should speed up builds a bit.  (Suggested by Ludovic
  Courtès.)

svn path=/nixpkgs/branches/stdenv-updates/; revision=10662
This commit is contained in:
Eelco Dolstra 2008-02-13 18:27:19 +00:00
parent 5f45fb3ae9
commit 908d8286ce

View File

@ -609,6 +609,13 @@ configureW() {
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
fi
# Add --disable-dependency-tracking to speed up some builds.
if test -z "$dontAddDisableDepTrack"; then
if grep -q dependency-tracking $configureScript; then
configureFlags="--disable-dependency-tracking ${prefixKey:---prefix=}$prefix $configureFlags"
fi
fi
echo "configure flags: $configureFlags ${configureFlagsArray[@]}"
$configureScript $configureFlags"${configureFlagsArray[@]}" || fail