2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

-Xcompiler -shared is generally needed when using libtool on Linux, not only when -ld is present

This commit is contained in:
Ondřej Surý
2018-08-27 09:42:11 +02:00
parent d03b9ec544
commit d60e553a64
2 changed files with 16 additions and 41 deletions

23
configure vendored
View File

@@ -724,7 +724,6 @@ ISC_PLATFORM_HAVETFO
ISC_PLATFORM_HAVEIF_LADDRCONF
ISC_PLATFORM_HAVEIF_LADDRREQ
BIND9_CO_RULE
LIBTOOL_ALLOW_UNDEFINED
LIBTOOL_MODE_UNINSTALL
LIBTOOL_MODE_LINK
LIBTOOL_MODE_INSTALL
@@ -15545,14 +15544,11 @@ $as_echo "yes" >&6; }
O=lo
A=la
LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
LIBTOOL_MODE_LINK='--mode=link --tag=CC'
LIBTOOL_MODE_UNINSTALL='--mode=uninstall --tag=CC'
LIBTOOL_MODE_COMPILE='--mode=compile'
LIBTOOL_MODE_INSTALL='--mode=install'
LIBTOOL_MODE_LINK='--mode=link'
LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
INSTALL_LIBRARY='${INSTALL_PROGRAM}'
case "$host" in
*) LIBTOOL_ALLOW_UNDEFINED= ;;
esac
;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -15566,7 +15562,6 @@ $as_echo "no" >&6; }
LIBTOOL_MODE_INSTALL=
LIBTOOL_MODE_LINK=
LIBTOOL_MODE_UNINSTALL=
LIBTOOL_ALLOW_UNDEFINED=
INSTALL_LIBRARY='${INSTALL_DATA}'
;;
esac
@@ -17608,7 +17603,6 @@ SA=a
BIND9_CO_RULE=".c.$O:"
@@ -20648,8 +20642,6 @@ if test "$with_dlopen" = "yes"; then :
SO_CFLAGS="-fPIC"
SO_LDFLAGS=""
if test "$ac_cv_search_dlopen" != "none required"; then :
if test "$use_libtool" = "yes"; then :
SO_LDFLAGS="-Xcompiler -shared"
@@ -20660,13 +20652,6 @@ else
SO_LDFLAGS="-shared"
SO_LD="${CC}"
fi
else
SO_LDFLAGS="-shared"
SO_LD="ld"
fi
;; #(
*-freebsd*|*-openbsd*) :

View File

@@ -884,14 +884,11 @@ case $use_libtool in
O=lo
A=la
LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
LIBTOOL_MODE_LINK='--mode=link --tag=CC'
LIBTOOL_MODE_UNINSTALL='--mode=uninstall --tag=CC'
LIBTOOL_MODE_COMPILE='--mode=compile'
LIBTOOL_MODE_INSTALL='--mode=install'
LIBTOOL_MODE_LINK='--mode=link'
LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
INSTALL_LIBRARY='${INSTALL_PROGRAM}'
case "$host" in
*) LIBTOOL_ALLOW_UNDEFINED= ;;
esac
;;
*)
AC_MSG_RESULT(no)
@@ -904,7 +901,6 @@ case $use_libtool in
LIBTOOL_MODE_INSTALL=
LIBTOOL_MODE_LINK=
LIBTOOL_MODE_UNINSTALL=
LIBTOOL_ALLOW_UNDEFINED=
INSTALL_LIBRARY='${INSTALL_DATA}'
;;
esac
@@ -1886,7 +1882,6 @@ AC_SUBST(LIBTOOL_MODE_COMPILE)
AC_SUBST(LIBTOOL_MODE_INSTALL)
AC_SUBST(LIBTOOL_MODE_LINK)
AC_SUBST(LIBTOOL_MODE_UNINSTALL)
AC_SUBST(LIBTOOL_ALLOW_UNDEFINED)
BIND9_CO_RULE=".c.$O:"
AC_SUBST(BIND9_CO_RULE)
@@ -2974,7 +2969,6 @@ AS_IF([test "$with_dlopen" = "yes"],
[*-linux*|*-gnu*],[
SO_CFLAGS="-fPIC"
SO_LDFLAGS=""
AS_IF([test "$ac_cv_search_dlopen" != "none required"],[
AS_IF([test "$use_libtool" = "yes"],[
SO_LDFLAGS="-Xcompiler -shared"
SO_LD="${CC}"
@@ -2982,10 +2976,6 @@ AS_IF([test "$with_dlopen" = "yes"],
SO_LDFLAGS="-shared"
SO_LD="${CC}"
])
],[
SO_LDFLAGS="-shared"
SO_LD="ld"
])
],
[*-freebsd*|*-openbsd*],[
LDFLAGS="${LDFLAGS} -Wl,-E"