Package: visualvm / 2.0.6+dfsg-1

01-gcc-settings.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Markus Koschany <apo@debian.org>
Date: Sun, 4 Oct 2020 20:18:51 +0200
Subject: 01-gcc-settings

Forwarded: not-needed
---
 .../libs.profiler/lib.profiler/native/build/buildnative-linux64.sh  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/visualvm/libs.profiler/lib.profiler/native/build/buildnative-linux64.sh b/visualvm/libs.profiler/lib.profiler/native/build/buildnative-linux64.sh
index 175b636..c8aece0 100755
--- a/visualvm/libs.profiler/lib.profiler/native/build/buildnative-linux64.sh
+++ b/visualvm/libs.profiler/lib.profiler/native/build/buildnative-linux64.sh
@@ -47,8 +47,10 @@ BuildForJDK()
         JAVA_HOME=$1
         JDK_ID=$2
         echo $JAVA_HOME $JDK_ID
-	gcc32 -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -DLINUX -pthread -fPIC -shared -O3 -Wall -m64  \
-	-o ../../release/lib/deployed/$JDK_ID/linux-amd64/libprofilerinterface.so \
+	gcc -I$JAVA_HOME/include -I$JAVA_HOME/include/linux \
+	-DLINUX -pthread -fPIC -shared -O3 -Wall -g $ARCHFLAG  \
+	$LDFLAGS \
+	-o ../../release/lib/deployed/libprofilerinterface-$JDK_ID.so \
 	../src-jdk15/class_file_cache.c \
 	../src-jdk15/attach.c \
 	../src-jdk15/Classes.c \