summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make7
1 files changed, 3 insertions, 4 deletions
diff --git a/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make b/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make
index 5dc965406e0d..4acf83458b4a 100644
--- a/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make
+++ b/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make
@@ -1,15 +1,14 @@
--- hotspot/make/bsd/makefiles/gcc.make
+++ hotspot/make/bsd/makefiles/gcc.make
-@@ -216,8 +216,12 @@
- endif
+@@ -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
- ifneq ("${CC_VER_MAJOR}", "2")
--DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
+DEPFLAGS += -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
endif