# HG changeset patch # User kamg # Date 1339434614 14400 # Node ID 4d399f013e5a24c38a463bbdba6bb16bbd64b8fa # Parent 0a8b8cb8b22c62fe92fa409e62c55b1fcdf29fd7 7175914: Usage of gcc with precompiled headers produces wrong build dependencies Summary: Add -fpch-deps flag to gcc builds Reviewed-by: kamg, coleenp Contributed-by: volker.simonis@gmail.com diff -r 0a8b8cb8b22c -r 4d399f013e5a make/bsd/makefiles/gcc.make --- a/make/bsd/makefiles/gcc.make Mon Jun 11 10:28:02 2012 +0200 +++ b/make/bsd/makefiles/gcc.make Mon Jun 11 13:10:14 2012 -0400 @@ -214,7 +214,7 @@ # Flags for generating make dependency flags. ifneq ("${CC_VER_MAJOR}", "2") -DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) +DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) endif # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. diff -r 0a8b8cb8b22c -r 4d399f013e5a make/linux/makefiles/gcc.make --- a/make/linux/makefiles/gcc.make Mon Jun 11 10:28:02 2012 +0200 +++ b/make/linux/makefiles/gcc.make Mon Jun 11 13:10:14 2012 -0400 @@ -166,7 +166,7 @@ # Flags for generating make dependency flags. ifneq ("${CC_VER_MAJOR}", "2") -DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) +DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) endif # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. diff -r 0a8b8cb8b22c -r 4d399f013e5a make/solaris/makefiles/gcc.make --- a/make/solaris/makefiles/gcc.make Mon Jun 11 10:28:02 2012 +0200 +++ b/make/solaris/makefiles/gcc.make Mon Jun 11 13:10:14 2012 -0400 @@ -141,7 +141,7 @@ # Flags for generating make dependency flags. ifneq ("${CC_VER_MAJOR}", "2") -DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) +DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) endif # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.