rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / runtime / openjdk-22 / patches / tribblix-flags-cflags.patch
blob7b85e1fccc004045fca7a1e77336204306d7c825
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 @@ -538,8 +538,8 @@
4 fi
6 if test "x$TOOLCHAIN_TYPE" = xgcc; then
7 - TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fstack-protector"
8 - TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
9 + TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM"
10 + TOOLCHAIN_CFLAGS_JDK="-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 @@ -590,7 +590,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 || test "x$TOOLCHAIN_TYPE" = xxlc; 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"