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
commitc69253b04ec2a197c267281bfdd59438c9c0d7dd (patch)
tree9e99aa494d7aee36944a5e53bc2a4fc323259f5b
parentc9fbb76f1d8514a05e1a358c097ca74fbe5ad33e (diff)
downloadopenttd-c69253b04ec2a197c267281bfdd59438c9c0d7dd.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 >=