perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / openjdk-11 / patches / make_autoconf_flags-cflags.m4.patch
blobae353b909736237c1a0c2ac7e4f76d3e23b4c194
1 $NetBSD$
3 Support for SunOS/gcc.
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'
14 + else
15 SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
16 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=[$]1'
17 + fi
19 elif test "x$TOOLCHAIN_TYPE" = xclang; then
20 C_FLAG_REORDER=''
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