desktop-file-utils: update to 0.28
[oi-userland.git] / components / developer / gcc-14 / patches / 0033-libstdc-must-use-thread-local-errno.patch
blob85244e5b155f6a1e9e19194688b22dccebdf300f
1 From 37a2f5bb459ad6cc558734cff8d3a7047670df6d 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 21abaeb07788..b6fc2d463061 100755
13 --- a/libstdc++-v3/configure
14 +++ b/libstdc++-v3/configure
15 @@ -55103,6 +55103,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 37396bd6ebbe..d6079dcd4a4b 100644
30 --- a/libstdc++-v3/configure.ac
31 +++ b/libstdc++-v3/configure.ac
32 @@ -655,6 +655,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"