libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-12 / patches / 0035-libstdc-must-use-thread-local-errno.patch
bloba3e16bdbebc714b4204352dbb0a495b314f8fd6b
1 From f295fca507f6faa6b690befc4d7c14f632656cb6 Mon Sep 17 00:00:00 2001
2 From: Andy Fiddaman <omnios@citrus-it.co.uk>
3 Date: Tue, 31 Aug 2021 21:40:48 +0000
4 Subject: libstdc++ must use thread-local errno
6 ---
7 libstdc++-v3/configure | 6 ++++++
8 libstdc++-v3/configure.ac | 5 +++++
9 2 files changed, 11 insertions(+)
11 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
12 index c07e2756974..41564ad22b3 100755
13 --- a/libstdc++-v3/configure
14 +++ b/libstdc++-v3/configure
15 @@ -78308,6 +78308,12 @@ done
16 tmake_file="${tmake_file_}"
19 +case "${target}" in *-*-solaris2*)
20 + EXTRA_CFLAGS="$EXTRA_CFLAGS -D_TS_ERRNO"
21 + EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS -D_TS_ERRNO"
22 +esac
25 # Add CET specific flags if Intel CET is enabled.
26 # Check whether --enable-cet was given.
27 if test "${enable_cet+set}" = set; then :
28 diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
29 index e59bcdb2944..b8ee84fa7e4 100644
30 --- a/libstdc++-v3/configure.ac
31 +++ b/libstdc++-v3/configure.ac
32 @@ -594,6 +594,11 @@ done
33 tmake_file="${tmake_file_}"
34 AC_SUBST(tmake_file)
36 +case "${target}" in *-*-solaris2*)
37 + EXTRA_CFLAGS="$EXTRA_CFLAGS -D_TS_ERRNO"
38 + EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS -D_TS_ERRNO"
39 +esac
41 # Add CET specific flags if Intel CET is enabled.
42 GCC_CET_FLAGS(CET_FLAGS)
43 EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"