diff options
Diffstat (limited to 'pkgs/stdenv/mingw/builder.sh')
-rwxr-xr-x | pkgs/stdenv/mingw/builder.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/stdenv/mingw/builder.sh b/pkgs/stdenv/mingw/builder.sh index c81f2949e31bf..cfafde6b00dc7 100755 --- a/pkgs/stdenv/mingw/builder.sh +++ b/pkgs/stdenv/mingw/builder.sh @@ -1,8 +1,16 @@ +# the other stdenv could change the SHELL variable, +# so we have to remember its value. +origShell=$SHELL +origGcc=$GCC + source $STDENV/setup source $SUBSTITUTE mkdir $OUT +SHELL=$origShell +GCC=$origGcc + substitute "$SETUP" "$OUT/setup" \ --subst-var INITIALPATH \ --subst-var GCC \ |