Makefile: add CC to TRACK_CFLAGS
[gitweb.git] / Makefile
index b7a62cfdf2ca4f05e47d69332976adabb73583e9..3bed8956eace7fa42f7441622c81209a009d3164 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1974,7 +1974,7 @@ cscope:
        $(FIND) . -name '*.[hcS]' -print | xargs cscope -b
 
 ### Detect prefix changes
-TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):\
+TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
 
 GIT-CFLAGS: FORCE