diff --git a/Makefile b/Makefile
index 9d0bc3b..27751be 100644
--- a/Makefile
+++ b/Makefile
@@ -239,7 +239,7 @@ endif
 
 # convert "include/tccdefs.h" to "tccdefs_.h"
 %_.h : include/%.h conftest.c
-	$S$(CC) -DC2STR $(filter %.c,$^) -o c2str.exe && ./c2str.exe $< $@
+	$S$(CC_HOST) -DC2STR $(filter %.c,$^) -o c2str.exe && ./c2str.exe $< $@
 
 # target specific object rule
 $(X)%.o : %.c $(LIBTCC_INC)
diff --git a/configure b/configure
index 6aa8554..b69ca08 100755
--- a/configure
+++ b/configure
@@ -157,6 +157,7 @@ for opt do
   esac
 done
 
+cc_host="$cc"
 cc="${cross_prefix}${cc}"
 ar="${cross_prefix}${ar}"
 
@@ -424,6 +425,7 @@ fcho "Target root prefix  " "$sysroot"
 fcho "/usr/include dir    " "$tcc_usrinclude"
 echo "Source path         $source_path"
 echo "C compiler          $cc ($gcc_major.$gcc_minor)"
+echo "C host compiler     $cc_host"
 echo "Target OS           $targetos"
 echo "CPU                 $cpu"
 fcho "Triplet             " "$triplet"
@@ -441,6 +443,7 @@ mandir=\$(DESTDIR)$mandir
 infodir=\$(DESTDIR)$infodir
 docdir=\$(DESTDIR)$docdir
 CC=$cc
+CC_HOST=$cc_host
 CC_NAME=$cc_name
 GCC_MAJOR=$gcc_major
 GCC_MINOR=$gcc_minor
