From a8eeed941350ad827eff88068354d00acb2091b3 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 21 Apr 2014 22:54:16 +0000 Subject: [PATCH] Refine the patch again. No functional change. --- .../files/patch-hotspot-make-bsd-makefiles-gcc.make | 7 +++---- 1 file 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