diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-05 12:36:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-05 12:36:18 -0700 |
commit | 821b315ebebd5371abd9124478261064b36a6592 (patch) | |
tree | 7f6a3c1d5e71c17308ad461727c492964f35923d /Makefile | |
parent | 79814585b78329b5009b7684290bc0c8872220db (diff) | |
parent | 1816bf26eccc0452d5db144f53020879c111c0dc (diff) | |
download | git-821b315ebebd5371abd9124478261064b36a6592.tar.gz |
Merge branch 'da/make-auto-header-dependencies'
* da/make-auto-header-dependencies:
Makefile: Improve compiler header dependency check
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1240,9 +1240,9 @@ COMPUTE_HEADER_DEPENDENCIES = USE_COMPUTED_HEADER_DEPENDENCIES = else ifndef COMPUTE_HEADER_DEPENDENCIES -dep_check = $(shell sh -c \ - '$(CC) -c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \ - echo $$?') +dep_check = $(shell $(CC) $(ALL_CFLAGS) \ + -c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \ + echo $$?) ifeq ($(dep_check),0) COMPUTE_HEADER_DEPENDENCIES=YesPlease endif |