Andreas Wacknitz
2024-01-27 7184c705a6f58435e822ea9de28cfa06dcf7e46f
commit | author | age
c448de 1 --- a/make/autoconf/flags-ldflags.m4~    Wed Apr 15 14:26:49 2020
NP 2 +++ b/make/autoconf/flags-ldflags.m4    Wed Apr 15 14:28:01 2020
7184c7 3 @@ -143,11 +143,13 @@
c448de 4  
NP 5    # Setup LDFLAGS for linking executables
6    if test "x$TOOLCHAIN_TYPE" = xgcc; then
7 -    EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined"
8 -    # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
9 -    # java heap.
10 -    if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
11 -      EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
12 +    if test "x$OPENJDK_TARGET_OS" != xsolaris; then
13 +      EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined"
14 +      # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
15 +      # java heap.
16 +      if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
17 +        EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
18 +      fi
19      fi
20    fi
21