--- jdk23u-jdk-23.0.1-ga/make/autoconf/flags-ldflags.m4.orig
+++ jdk23u-jdk-23.0.1-ga/make/autoconf/flags-ldflags.m4
@@ -171,7 +171,9 @@
        test "x${OPENJDK_$1_CPU}" = xmips64el; then
       $1_CPU_LDFLAGS="${$1_CPU_LDFLAGS} -Wl,--hash-style=sysv"
     else
-      $1_CPU_LDFLAGS="${$1_CPU_LDFLAGS} -Wl,--hash-style=gnu"
+      if test "x$OPENJDK_TARGET_OS" != xsolaris; then
+        $1_CPU_LDFLAGS="${$1_CPU_LDFLAGS} -Wl,--hash-style=gnu"
+      fi
     fi
 
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then