blob: a3bc5762dedbdcaa12b6e8c84f2b57f2ccd3a374 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.
 |