mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
setup.sh: separate command from combined conditional
This commit is contained in:
parent
ef76a5e009
commit
06688b73ca
1 changed files with 11 additions and 9 deletions
|
@ -996,17 +996,19 @@ configurePhase() {
|
|||
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
|
||||
fi
|
||||
|
||||
# Add --disable-dependency-tracking to speed up some builds.
|
||||
if [ -z "${dontAddDisableDepTrack:-}" ]; then
|
||||
if [ -f "$configureScript" ] && grep -q dependency-tracking "$configureScript"; then
|
||||
configureFlags="--disable-dependency-tracking $configureFlags"
|
||||
if [ -f "$configureScript" ]; then
|
||||
# Add --disable-dependency-tracking to speed up some builds.
|
||||
if [ -z "${dontAddDisableDepTrack:-}" ]; then
|
||||
if grep -q dependency-tracking "$configureScript"; then
|
||||
configureFlags="--disable-dependency-tracking $configureFlags"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# By default, disable static builds.
|
||||
if [ -z "${dontDisableStatic:-}" ]; then
|
||||
if [ -f "$configureScript" ] && grep -q enable-static "$configureScript"; then
|
||||
configureFlags="--disable-static $configureFlags"
|
||||
# By default, disable static builds.
|
||||
if [ -z "${dontDisableStatic:-}" ]; then
|
||||
if grep -q enable-static "$configureScript"; then
|
||||
configureFlags="--disable-static $configureFlags"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue