mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:02:05 -04:00
Merge branch '1095-when-gnu-c-compiler-is-used-on-solaris-gnu-ld-must-be-used-v9_14' into 'v9_14'
Enforce usage -zrelax=transtls when GNU C Compiler is used on Solaris See merge request isc-projects/bind9!2098
This commit is contained in:
commit
38e10a8201
2 changed files with 28 additions and 0 deletions
17
configure
vendored
17
configure
vendored
|
|
@ -13126,6 +13126,23 @@ fi
|
|||
|
||||
|
||||
|
||||
#
|
||||
# Using Solaris linker with gcc on Solaris breaks Thread Local Storage
|
||||
#
|
||||
case $host in #(
|
||||
*-solaris*) :
|
||||
|
||||
if test "$GCC" = "yes"; then :
|
||||
LDFLAGS="$LDFLAGS -zrelax=transtls"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
|
||||
$as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
|
||||
|
||||
fi
|
||||
;; #(
|
||||
*) :
|
||||
;;
|
||||
esac
|
||||
|
||||
#
|
||||
# CCNOOPT defaults to -O0 on gcc and disables optimization when is last
|
||||
#
|
||||
|
|
|
|||
11
configure.ac
11
configure.ac
|
|
@ -355,6 +355,17 @@ esac
|
|||
AC_PROG_CC
|
||||
AC_PROG_CC_C99
|
||||
|
||||
#
|
||||
# Using Solaris linker with gcc on Solaris breaks Thread Local Storage
|
||||
#
|
||||
AS_CASE([$host],
|
||||
[*-solaris*],[
|
||||
AS_IF([test "$GCC" = "yes"],
|
||||
[LDFLAGS="$LDFLAGS -zrelax=transtls"
|
||||
AC_MSG_WARN([When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage])
|
||||
])
|
||||
])
|
||||
|
||||
#
|
||||
# CCNOOPT defaults to -O0 on gcc and disables optimization when is last
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue