summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 >=