* Pass --disable-static to configure by default it it's supported.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15234
This commit is contained in:
Eelco Dolstra 2009-04-21 22:40:12 +00:00
parent ff057f0d07
commit 2a699fe5fb

View File

@ -548,6 +548,13 @@ configurePhase() {
fi
fi
# By default, disable static builds.
if test -z "$dontDisableStatic"; then
if grep -q enable-static $configureScript; then
configureFlags="--disable-static $configureFlags"
fi
fi
echo "configure flags: $configureFlags ${configureFlagsArray[@]}"
$configureScript $configureFlags "${configureFlagsArray[@]}"