diff options
author | David Aguilar <davvid@gmail.com> | 2011-08-30 01:27:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-30 10:15:04 -0700 |
commit | 1816bf26eccc0452d5db144f53020879c111c0dc (patch) | |
tree | 039bcd93cfba05a1bef32b9d9e02f8a477eb8e22 /contrib/fast-import | |
parent | Makefile: Use computed header dependencies if the compiler supports it (diff) | |
download | tgif-1816bf26eccc0452d5db144f53020879c111c0dc.tar.xz |
Makefile: Improve compiler header dependency check
The Makefile enables CHECK_HEADER_DEPENDENCIES when the
compiler supports generating header dependencies.
Make the check use the same flags as the invocation
to avoid a false positive when user-configured compiler
flags contain incompatible options.
For example, without this patch, trying to build universal
binaries on a Mac using CFLAGS='-arch i386 -arch x86_64'
produces:
gcc-4.2: -E, -S, -save-temps and -M options are
not allowed with multiple -arch flags
While at it, remove "sh -c" in the command passed to $(shell);
at this point in the Makefile, SHELL has already been set to
a sensible shell and it is better not to override that.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/fast-import')
0 files changed, 0 insertions, 0 deletions