stdenv/setup.sh: fix previous change...
for the case that there is no makefile. CC #1354
This commit is contained in:
parent
3f4b14d793
commit
d978c35ff9
@ -109,9 +109,6 @@ runHook preHook
|
|||||||
# Check that the pre-hook initialised SHELL.
|
# Check that the pre-hook initialised SHELL.
|
||||||
if [ -z "$SHELL" ]; then echo "SHELL not set"; exit 1; fi
|
if [ -z "$SHELL" ]; then echo "SHELL not set"; exit 1; fi
|
||||||
|
|
||||||
# see https://github.com/NixOS/nixpkgs/pull/1354#issuecomment-31260409
|
|
||||||
makeFlags="${makeFlags} SHELL=${SHELL}"
|
|
||||||
|
|
||||||
# Hack: run gcc's setup hook.
|
# Hack: run gcc's setup hook.
|
||||||
envHooks=()
|
envHooks=()
|
||||||
crossEnvHooks=()
|
crossEnvHooks=()
|
||||||
@ -617,6 +614,9 @@ buildPhase() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# see https://github.com/NixOS/nixpkgs/pull/1354#issuecomment-31260409
|
||||||
|
makeFlags="${makeFlags} SHELL=${SHELL}"
|
||||||
|
|
||||||
echo "make flags: $makeFlags ${makeFlagsArray[@]} $buildFlags ${buildFlagsArray[@]}"
|
echo "make flags: $makeFlags ${makeFlagsArray[@]} $buildFlags ${buildFlagsArray[@]}"
|
||||||
make ${makefile:+-f $makefile} \
|
make ${makefile:+-f $makefile} \
|
||||||
${enableParallelBuilding:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} \
|
${enableParallelBuilding:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user