summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-07-04 13:51:17 +0000
committertruelight <truelight@openttd.org>2006-07-04 13:51:17 +0000
commit7e5d4a88a196badf90c671a0911686946cbf5a20 (patch)
tree9e99aa494d7aee36944a5e53bc2a4fc323259f5b
parentf86d645d553b7433b56eeb95eb326dc6287a82bb (diff)
downloadopenttd-7e5d4a88a196badf90c671a0911686946cbf5a20.tar.xz
(svn r5456) -Fix: detect the version of the TARGET, not the HOST please
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 986cfb2a4..40603f06f 100644
--- a/Makefile
+++ b/Makefile
@@ -308,7 +308,7 @@ ifndef CC_TARGET
CC_TARGET = $(CC_HOST)
endif
-CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
+CC_VERSION = $(shell $(CC_TARGET) -dumpversion | cut -c 1,3)
# GNU make can only test for (in)equality
# this is a workaround to test for >=