]> git.sur5r.net Git - u-boot/blobdiff - cpu/mcf5227x/config.mk
ColdFire: Get information from the correct GCC
[u-boot] / cpu / mcf5227x / config.mk
index 8d60fd66bf08bbfbef35328f4e96a86fbf72abbe..2e5069687c9b522898e517a0de265adacbea82d1 100644 (file)
@@ -24,7 +24,7 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifeq ($(findstring 4.2,$(shell $(CROSS_COMPILE)gcc --version)),4.2)
 PLATFORM_CPPFLAGS += -mcpu=5208 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5307 -fPIC