summaryrefslogtreecommitdiff
path: root/bootstrap.1
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.1')
-rwxr-xr-xbootstrap.112
1 files changed, 9 insertions, 3 deletions
diff --git a/bootstrap.1 b/bootstrap.1
index e2accf36236a..7a524d3c089d 100755
--- a/bootstrap.1
+++ b/bootstrap.1
@@ -18,9 +18,15 @@ if test "$BUILD_DMAKE" != "NO"; then
cd "$SRC_ROOT/dmake" || exit
# If cross-compiling then don't use the cross compilers to build dmake.
- if test "$CROSS_COMPILING" = "YES"; then
- CC=""
- CXX=""
+ if test "$CROSS_COMPILING" = "YES"; then
+ if test "$GUI_FOR_BUILD" = "WNT"; then
+ # Let the Cygwin gcc be found
+ CC=""
+ CXX=""
+ else
+ CC="$CC_FOR_BUILD"
+ CXX="$CXX_FOR_BUILD"
+ fi
export CC
export CXX
fi