summaryrefslogtreecommitdiff
path: root/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make
blob: 4acf83458b4a1f27cea15c1f75c043cbb4aaf43a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- hotspot/make/bsd/makefiles/gcc.make
+++ hotspot/make/bsd/makefiles/gcc.make
@@ -214,7 +214,11 @@
 
 # Flags for generating make dependency flags.
 ifneq ("${CC_VER_MAJOR}", "2")
-DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
+DEPFLAGS =
+ifeq (,$(findstring clang,$(shell $(CC) -v 2>&1)))
+DEPFLAGS += -fpch-deps
+endif
+DEPFLAGS += -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
 endif
 
 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.