--- a/make/autoconf/flags-ldflags.m4~ Wed Apr 15 14:26:49 2020 +++ b/make/autoconf/flags-ldflags.m4 Wed Apr 15 14:28:01 2020 @@ -124,10 +124,12 @@ # Setup LDFLAGS for linking executables if test "x$TOOLCHAIN_TYPE" = xgcc; then - # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous - # java heap. - if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then - EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie" + if test "x$OPENJDK_TARGET_OS" != xsolaris; then + # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous + # java heap. + if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then + EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie" + fi fi fi