perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / openjdk-24 / patches / tribblix-flags-cflags.patch
blob6afe4b285c7c4fc1c8f6af01b8d76f628c9a944b
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
3 @@ -541,8 +541,8 @@
4 fi
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
14 @@ -588,7 +588,12 @@
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"
22 + else
23 + LANGSTD_CFLAGS="-std=c11"
24 + fi
25 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
26 LANGSTD_CFLAGS="-std:c11"