Browse Source

check the build system compiler

Waldemar Brodkorb 13 years ago
parent
commit
bb478c3653
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mk/vars.mk

+ 1 - 1
mk/vars.mk

@@ -89,7 +89,7 @@ endif
 
 # A nifty macro to make testing gcc features easier (from uClibc project)
 check_gcc=$(shell \
-        if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
+        if $(CC_FOR_BUILD) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
         then echo "$(1)"; else echo "$(2)"; fi)
 
 CF_FOR_BUILD=$(call check_gcc,-fhonour-copts,)