summaryrefslogtreecommitdiff
path: root/java/openjdk11/files
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2019-03-29 17:06:20 +0000
committerGreg Lewis <glewis@FreeBSD.org>2019-03-29 17:06:20 +0000
commit51cf7dc1350c35e376a024fb921c2c49ae9bc5ab (patch)
tree4891958af6f9af12e8db5da58db19180894864d2 /java/openjdk11/files
parentgames/anki: Unbreak (diff)
Fix DTrace support for 32 bit platforms and re-enable it.
PR: 236876
Notes
Notes: svn path=/head/; revision=497169
Diffstat (limited to 'java/openjdk11/files')
-rw-r--r--java/openjdk11/files/patch-make_hotspot_lib_JvmDtraceObjects.gmk18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/openjdk11/files/patch-make_hotspot_lib_JvmDtraceObjects.gmk b/java/openjdk11/files/patch-make_hotspot_lib_JvmDtraceObjects.gmk
new file mode 100644
index 000000000000..a3bc5762dedb
--- /dev/null
+++ b/java/openjdk11/files/patch-make_hotspot_lib_JvmDtraceObjects.gmk
@@ -0,0 +1,18 @@
+--- make/hotspot/lib/JvmDtraceObjects.gmk
++++ make/hotspot/lib/JvmDtraceObjects.gmk
+@@ -201,8 +201,13 @@ ifeq ($(call check-jvm-feature, dtrace), true)
+ )
+ endif
+
+- DTRACE_FLAGS := -64 -G
+- DTRACE_CPP_FLAGS := -D_LP64 -x c
++ ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
++ DTRACE_FLAGS := -32 -G
++ DTRACE_CPP_FLAGS := -x c
++ else
++ DTRACE_FLAGS := -64 -G
++ DTRACE_CPP_FLAGS := -D_LP64 -x c
++ endif
+
+ # Make sure we run our selected compiler for preprocessing instead of letting
+ # the dtrace tool pick it on it's own.