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
13 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
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])
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])
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], [], [],