]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile: add CC to TRACK_CFLAGS
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 12 Sep 2010 22:37:45 +0000 (22:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2010 18:45:20 +0000 (11:45 -0700)
Change the git make process so that everything's rebuilt if the CC is
changed. Before we wouldn't rebuilt if e.g. the CC variable was
changed from gcc to clang.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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