aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2018-01-18 09:58:19 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:25:44 +0800
commitea36cc263c0fe928ba9f8301382b8e8c8a857168 (patch)
tree8f3dcdafb9c4e0edad7c395740e13e6f665645cd /java
parentdc40fa38d0427a5e971054dd016be7e96d5aef70 (diff)
downloadfreebsd-ports-gnome-ea36cc263c0fe928ba9f8301382b8e8c8a857168.tar.gz
freebsd-ports-gnome-ea36cc263c0fe928ba9f8301382b8e8c8a857168.tar.zst
freebsd-ports-gnome-ea36cc263c0fe928ba9f8301382b8e8c8a857168.zip
Fix build with Clang 6.0.
Note it is partially merged from the upstream patches for Linux and GCC 6. https://bugs.openjdk.java.net/browse/JDK-8163032 http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/rev/e34324d73cd5 http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/9e1264f51bae PR: 225054
Diffstat (limited to 'java')
-rw-r--r--java/openjdk7/files/patch-hotspot_make_bsd_makefiles_gcc.make10
-rw-r--r--java/openjdk7/files/patch-jdk_make_common_Defs-bsd.gmk11
2 files changed, 21 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..b91c7f244b85
--- /dev/null
+++ b/java/openjdk7/files/patch-hotspot_make_bsd_makefiles_gcc.make
@@ -0,0 +1,10 @@
+--- hotspot/make/bsd/makefiles/gcc.make.orig
++++ hotspot/make/bsd/makefiles/gcc.make
+@@ -112,6 +112,7 @@ ifeq ($(JVM_VARIANT_ZEROSHARK), true)
+ CFLAGS += $(LIBFFI_CFLAGS)
+ CFLAGS += $(LLVM_CFLAGS)
+ endif
++CFLAGS += -std=gnu++98
+ CFLAGS += $(VM_PICFLAG)
+ CFLAGS += -fno-rtti
+ CFLAGS += -fno-exceptions
diff --git a/java/openjdk7/files/patch-jdk_make_common_Defs-bsd.gmk b/java/openjdk7/files/patch-jdk_make_common_Defs-bsd.gmk
new file mode 100644
index 000000000000..ef4d74bd59aa
--- /dev/null
+++ b/java/openjdk7/files/patch-jdk_make_common_Defs-bsd.gmk
@@ -0,0 +1,11 @@
+--- jdk/make/common/Defs-bsd.gmk.orig
++++ jdk/make/common/Defs-bsd.gmk
+@@ -274,7 +274,7 @@ CFLAGS_OPT = $(CC_OPT)
+ CFLAGS_DBG = $(DEBUG_FLAG)
+ CFLAGS_COMMON += $(CFLAGS_REQUIRED)
+
+-CXXFLAGS_COMMON = $(GLOBAL_KPIC) -DCC_NOEX $(GCC_WARNINGS)
++CXXFLAGS_COMMON = -std=gnu++98 $(GLOBAL_KPIC) -DCC_NOEX $(GCC_WARNINGS)
+ CXXFLAGS_OPT = $(CC_OPT)
+ CXXFLAGS_DBG = $(DEBUG_FLAG)
+ CXXFLAGS_COMMON += $(CFLAGS_REQUIRED)