mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
stdenv: don't complain about configure script not existing
Close #14335.
Since 89036ef76a
, when a package doesn't include a configure script,
the build complains with:
grep: : No such file or directory
grep: : No such file or directory
This prevents that.
This commit is contained in:
parent
6c9ce23c00
commit
bde82098b8
@ -649,14 +649,14 @@ configurePhase() {
|
||||
|
||||
# Add --disable-dependency-tracking to speed up some builds.
|
||||
if [ -z "$dontAddDisableDepTrack" ]; then
|
||||
if grep -q dependency-tracking "$configureScript"; then
|
||||
if [ -f "$configureScript" ] && grep -q dependency-tracking "$configureScript"; then
|
||||
configureFlags="--disable-dependency-tracking $configureFlags"
|
||||
fi
|
||||
fi
|
||||
|
||||
# By default, disable static builds.
|
||||
if [ -z "$dontDisableStatic" ]; then
|
||||
if grep -q enable-static "$configureScript"; then
|
||||
if [ -f "$configureScript" ] && grep -q enable-static "$configureScript"; then
|
||||
configureFlags="--disable-static $configureFlags"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user