summaryrefslogtreecommitdiff
path: root/java/openjdk7
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-04-21 22:54:16 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-04-21 22:54:16 +0000
commita8eeed941350ad827eff88068354d00acb2091b3 (patch)
tree5be1bdea4143ba64ecaaecb9c127e0f21b3e24d4 /java/openjdk7
parentSupport stage (diff)
Refine the patch again. No functional change.
Notes
Notes: svn path=/head/; revision=351730
Diffstat (limited to 'java/openjdk7')
-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