5 --- a/make/autoconf/flags-cflags.m4.orig 2019-01-08 09:40:27.000000000 +0000
6 +++ b/make/autoconf/flags-cflags.m4
7 @@ -41,8 +41,13 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
8 SHARED_LIBRARY_FLAGS='-shared'
9 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1'
10 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN"
11 + if test "x$OPENJDK_TARGET_OS" = xsolaris; then
12 + SET_SHARED_LIBRARY_NAME='-Wl,-h,[$]1'
13 + SET_SHARED_LIBRARY_MAPFILE='-Wl,-M,[$]1'
15 SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
16 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=[$]1'
19 elif test "x$TOOLCHAIN_TYPE" = xclang; then
21 @@ -467,6 +472,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
23 if test "x$TOOLCHAIN_TYPE" = xgcc; then
24 ALWAYS_DEFINES_JVM="-D_GNU_SOURCE -D_REENTRANT"
25 + ALWAYS_DEFINES_JDK="-D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
26 elif test "x$TOOLCHAIN_TYPE" = xclang; then
27 ALWAYS_DEFINES_JVM="-D_GNU_SOURCE"
28 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then