8200383: Can't build on SPARC Hotspot with code which use math functions
Summary: remove old hack which supports Solaris 8 and 9
Reviewed-by: erikj, ihse
--- a/make/autoconf/libraries.m4 Wed Mar 28 13:25:15 2018 -0700
+++ b/make/autoconf/libraries.m4 Wed Mar 28 17:20:06 2018 -0700
@@ -114,17 +114,7 @@
fi
# Math library
- if test "x$OPENJDK_TARGET_OS" != xsolaris; then
- BASIC_JVM_LIBS="$LIBM"
- else
- # FIXME: This hard-coded path is not really proper.
- if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
- BASIC_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1"
- elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
- BASIC_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1"
- fi
- BASIC_JVM_LIBS="$BASIC_SOLARIS_LIBM_LIBS"
- fi
+ BASIC_JVM_LIBS="$LIBM"
# Dynamic loading library
if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
--- a/make/lib/Awt2dLibraries.gmk Wed Mar 28 13:25:15 2018 -0700
+++ b/make/lib/Awt2dLibraries.gmk Wed Mar 28 17:20:06 2018 -0700
@@ -409,11 +409,7 @@
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
- LDFLAGS_solaris := /usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2, \
- LIBS_unix := -lawt -ljvm -ljava $(LCMS_LIBS), \
- LIBS_linux := $(LIBM), \
- LIBS_macosx := $(LIBM), \
- LIBS_aix := $(LIBM),\
+ LIBS_unix := -lawt -ljvm -ljava $(LCMS_LIBS) $(LIBM), \
LIBS_windows := $(WIN_AWT_LIB) $(WIN_JAVA_LIB), \
))