libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-13 / patches / 0034-libstdc-must-use-thread-local-errno.patch
blob3d80530290f52b9b550e8baf4ead83f77717e448
1 From 17ee48027c5cc1550e84eeea7c54c9626d55101d 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 9b6027775456..e0fa6748859e 100755
13 --- a/libstdc++-v3/configure
14 +++ b/libstdc++-v3/configure
15 @@ -72297,6 +72297,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 91b3c1f32f2a..0345a98512fb 100644
30 --- a/libstdc++-v3/configure.ac
31 +++ b/libstdc++-v3/configure.ac
32 @@ -633,6 +633,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"