summaryrefslogtreecommitdiff
path: root/bootstrap.1
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-15 23:46:59 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-05-15 23:47:47 +0300
commiteca6196cd925aa7292fa9e99d2a3695f785258d2 (patch)
tree28c3d69fdeced5581352c3fc8742457981c3476a /bootstrap.1
parentaf495ab5189641b718eea78b1b4949df2053e220 (diff)
Use the build platform compiler for dmake when cross-compiling
Except when cross-compiling from Windows (yeah... not bloody likely anybody would be silly enough to do that...), then use the Cygwin gcc.
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