diff options
Diffstat (limited to 'java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make')
-rw-r--r-- | java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make | 15 |
1 files changed, 15 insertions, 0 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 new file mode 100644 index 000000000000..6e2143ce7601 --- /dev/null +++ b/java/openjdk7/files/patch-hotspot-make-bsd-makefiles-gcc.make @@ -0,0 +1,15 @@ +--- hotspot/make/bsd/makefiles/gcc.make ++++ hotspot/make/bsd/makefiles/gcc.make +@@ -216,8 +216,11 @@ + endif + + # Flags for generating make dependency flags. ++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 + + # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. |