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
commit23dd9a0ba9feb6f04af80b92be91d11f1920f7c4 (patch)
tree3db0523169a1c292512f3b1310b50193841e75ea
parentbe24777037cce847d635de0bf18f327dac025d4a (diff)
downloadopenttd-23dd9a0ba9feb6f04af80b92be91d11f1920f7c4.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