summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-03-14 19:15:46 +0000
committertruelight <truelight@openttd.org>2006-03-14 19:15:46 +0000
commit382104ce8965f02f1fc644b9fa367de907303b23 (patch)
tree3db0523169a1c292512f3b1310b50193841e75ea
parent88b6b445665043ecbc5610dcaf7ec1d1f639967a (diff)
downloadopenttd-382104ce8965f02f1fc644b9fa367de907303b23.tar.xz
(svn r3866) -Fix: only add CXX if it is given
Word of warning: configure _does_ delete your Makefile.config!
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 2a36ed455..2f9eaa53f 100755
--- a/configure
+++ b/configure
@@ -217,5 +217,8 @@ make upgradeconf $PARAM
# Makefile.config currently doesn't support custom CXX, so, we add the line
# ourself!
-echo "CXX=$TARGET_CXX" >> Makefile.config
+if ! test -z "$TARGET_CXX"
+then
+ echo "CXX=$TARGET_CXX" >> Makefile.config
+fi