From 41bcf47643ae7e0a85c8fb4be9e235e6a4e723ec Mon Sep 17 00:00:00 2001 From: kamg Date: Mon, 11 Jun 2012 13:10:14 -0400 Subject: [PATCH] 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 --- make/bsd/makefiles/gcc.make | 2 +- make/linux/makefiles/gcc.make | 2 +- make/solaris/makefiles/gcc.make | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/make/bsd/makefiles/gcc.make b/make/bsd/makefiles/gcc.make index 938da94fe..249628ee7 100644 --- a/make/bsd/makefiles/gcc.make +++ b/make/bsd/makefiles/gcc.make @@ -214,7 +214,7 @@ endif # 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 --git a/make/linux/makefiles/gcc.make b/make/linux/makefiles/gcc.make index 57fcad6f5..ff0a3753d 100644 --- a/make/linux/makefiles/gcc.make +++ b/make/linux/makefiles/gcc.make @@ -166,7 +166,7 @@ endif # 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 --git a/make/solaris/makefiles/gcc.make b/make/solaris/makefiles/gcc.make index 4d0db9e7a..be26f6d41 100644 --- a/make/solaris/makefiles/gcc.make +++ b/make/solaris/makefiles/gcc.make @@ -141,7 +141,7 @@ OPT_CFLAGS/NOOPT=-O0 # 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. -- GitLab