rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / bind / patches / 01-remove-zrelax-transtls.patch
blob20d6f2be171e229c46db6a99c199e3aed0bf03fd
1 When GNU C Compiler is used on Solaris (11), the Thread Local Storage
2 is completely broken. The behaviour doesn't manifest when GNU ld is
3 used. Thus, we need to enforce usage of GNU ld when GNU C Compiler is
4 the compiler of choice.
6 For more background for this change, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90912
8 (cherry picked from commit d584223653e17930109f37f5203acecca4090ca6)
9 --- bind-9.18.12/configure.ac 2023-02-03 12:25:47.438145409 +0100
10 +++ bind-9.18.12/configure.ac.new 2023-02-25 17:58:08.392224650 +0100
11 @@ -280,13 +280,13 @@
13 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
15 -AS_CASE([$host],
16 - [*-solaris*],[
17 - AS_IF([test "$GCC" = "yes"],
18 - [LDFLAGS="$LDFLAGS -zrelax=transtls"
19 - AC_MSG_WARN([When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage])
20 - ])
21 - ])
22 +#AS_CASE([$host],
23 +# [*-solaris*],[
24 +# AS_IF([test "$GCC" = "yes"],
25 +# [LDFLAGS="$LDFLAGS -zrelax=transtls"
26 +# AC_MSG_WARN([When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage])
27 +# ])
28 +# ])
30 AC_CHECK_HEADERS([fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h], [], [],
31 [$ac_includes_default