component(developer/golang-123): Add Component
[oi-userland.git] / components / runtime / openjdk-23 / patches / tribblix-flags-ldflags3.patch
blob7432297f1e16f043df2c7adafc3a7858642c1772
1 --- a/make/autoconf/flags-ldflags.m4~ Wed Apr 15 14:26:49 2020
2 +++ b/make/autoconf/flags-ldflags.m4 Wed Apr 15 14:28:01 2020
3 @@ -122,10 +122,12 @@
5 # Setup LDFLAGS for linking executables
6 if test "x$TOOLCHAIN_TYPE" = xgcc; then
7 - # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
8 - # java heap.
9 - if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
10 - EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
11 + if test "x$OPENJDK_TARGET_OS" != xsolaris; then
12 + # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
13 + # java heap.
14 + if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
15 + EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
16 + fi