1 --- a/make/autoconf/flags-cflags.m4~ Sun Apr 12 19:51:35 2020
2 +++ b/make/autoconf/flags-cflags.m4 Sun Apr 12 21:38:33 2020
6 if test "x$TOOLCHAIN_TYPE" = xgcc; then
7 - TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fstack-protector"
8 - TOOLCHAIN_CFLAGS_JDK="-fvisibility=hidden -pipe -fstack-protector"
9 + TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM"
10 + TOOLCHAIN_CFLAGS_JDK="-fvisibility=hidden -pipe"
11 # reduce lib size on linux in link step, this needs also special compile flags
12 # do this on s390x also for libjvm (where serviceability agent is not supported)
13 if test "x$ENABLE_LINKTIME_GC" = xtrue; then
16 # CFLAGS C language level for JDK sources (hotspot only uses C++)
17 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
18 - LANGSTD_CFLAGS="-std=c11"
19 + if test "x$OPENJDK_TARGET_OS" = xsolaris; then
20 + # illumos headers are confused by c11
21 + LANGSTD_CFLAGS="-std=gnu11"
23 + LANGSTD_CFLAGS="-std=c11"
25 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
26 LANGSTD_CFLAGS="-std:c11"