7175914: Usage of gcc with precompiled headers produces wrong build dependencies
authorkamg
Mon, 11 Jun 2012 13:10:14 -0400
changeset 12943 5ebbcf0cb20f
parent 12942 b69b4fb3954e
child 12944 93b6214f5fba
child 13087 673ea6efaf18
child 13088 6d7b2029e597
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
hotspot/make/bsd/makefiles/gcc.make
hotspot/make/linux/makefiles/gcc.make
hotspot/make/solaris/makefiles/gcc.make
--- a/hotspot/make/bsd/makefiles/gcc.make	Mon Jun 11 10:28:02 2012 +0200
+++ b/hotspot/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.
--- a/hotspot/make/linux/makefiles/gcc.make	Mon Jun 11 10:28:02 2012 +0200
+++ b/hotspot/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.
--- a/hotspot/make/solaris/makefiles/gcc.make	Mon Jun 11 10:28:02 2012 +0200
+++ b/hotspot/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.