Skip to content

Commit 79e0eba

Browse files
authored
Revert "Hide statically linked libstdc++ symbols and enable compiler to remove unused code. (#221)" (#241)
This reverts commit a793f19.
1 parent 4b5770c commit 79e0eba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jvmti-access/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sourceSets {
5252
}
5353
}
5454

55-
val sharedCompilerArgs = "-std=c++17 -fno-rtti -fno-exceptions -O2 -ftls-model=global-dynamic -fPIC -fdata-sections -ffunction-sections -Wall -Werror -Wextra -shared"
55+
val sharedCompilerArgs = "-std=c++17 -fno-rtti -fno-exceptions -O2 -ftls-model=global-dynamic -fPIC -Wall -Werror -Wextra -shared"
5656
val nativeTargets = listOf(
5757
NativeTarget(
5858
"darwin-arm64.so",
@@ -68,12 +68,12 @@ val nativeTargets = listOf(
6868
NativeTarget(
6969
"linux-arm64.so",
7070
"jni_linux_arm64.Dockerfile",
71-
"-static-libstdc++ -static-libgcc -mtls-dialect=desc -Wl,--exclude-libs,ALL -Wl,--gc-sections $sharedCompilerArgs"
71+
"-static-libstdc++ -static-libgcc -mtls-dialect=desc $sharedCompilerArgs"
7272
),
7373
NativeTarget(
7474
"linux-x64.so",
7575
"jni_linux_x64.Dockerfile",
76-
"-static-libstdc++ -static-libgcc -mtls-dialect=gnu2 -Wl,--exclude-libs,ALL -Wl,--gc-sections $sharedCompilerArgs"
76+
"-static-libstdc++ -static-libgcc -mtls-dialect=gnu2 $sharedCompilerArgs"
7777
)
7878
)
7979

0 commit comments

Comments
 (0)