about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-05-12 08:40:20 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2012-05-16 14:09:23 +0200
commit656416c96528437f54b345b1470aaa40f145ed30 (patch)
treef408ddead3661f88e1e51646c1d26999a78d0bc7 /Makerules
parenta46f2169d30470c810411cb7f223713d46065651 (diff)
downloadglibc-656416c96528437f54b345b1470aaa40f145ed30.tar.gz
glibc-656416c96528437f54b345b1470aaa40f145ed30.tar.xz
glibc-656416c96528437f54b345b1470aaa40f145ed30.zip
Fix dependency tracking on cross-rpcgen-objs
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index b069763a72..a897d4ea65 100644
--- a/Makerules
+++ b/Makerules
@@ -369,6 +369,11 @@ compile-command.s = $(COMPILE.s) $< $(OUTPUT_OPTION) $(compile-mkdep-flags)
 compile-command.c = $(compile.c) $(OUTPUT_OPTION) $(compile-mkdep-flags)
 compile-command.cc = $(compile.cc) $(OUTPUT_OPTION) $(compile-mkdep-flags)
 
+# Like compile-mkdep-flags, but for use with $(BUILD_CC).  We don't want to
+# track system includes here, they may spuriously trigger an install rule,
+# and would cause the check-local-headers test to fail.
+native-compile-mkdep-flags = -MMD -MP -MF $@.dt -MT $@
+
 # GCC can grok options after the file name, and it looks nicer that way.
 compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)
 compile.cc = $(CXX) $< -c $(CXXFLAGS) $(CPPFLAGS)