libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-10 / patches / 0036-libstdc-must-use-thread-local-errno.patch
blob4455e53da0b0bce8e6b7a2d2170a591013440c3b
1 From 85e56ed630134eb0082e7f905d9c54fdb28865ec 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: [PATCH 36/36] 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 1aa657d443f..81db3929c69 100755
13 --- a/libstdc++-v3/configure
14 +++ b/libstdc++-v3/configure
15 @@ -76833,6 +76833,12 @@ CPU_OPT_BITS_RANDOM=config/${cpu_opt_bits_random}
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 07cf05b6856..7dbe0fc446c 100644
30 --- a/libstdc++-v3/configure.ac
31 +++ b/libstdc++-v3/configure.ac
32 @@ -528,6 +528,11 @@ AC_SUBST(CPU_OPT_EXT_RANDOM)
33 AC_SUBST(CPU_OPT_BITS_RANDOM)
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"
44 --
45 2.33.0