1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

Add new replace check for --version-script

Allows us to pass an export files on Linux and Solaris so that we can expose
only symbols that are actually supposed to be global, and keep as local anything
else.
This commit is contained in:
Simo Sorce 2009-06-15 16:20:06 -04:00
parent 57ba31ca96
commit f518e37c09

View File

@ -248,6 +248,22 @@ AC_DEFUN([AC_LD_SONAMEFLAG],
esac
])
AC_DEFUN([AC_LD_VERSIONSCRIPT],
[
AC_SUBST(VERSIONSCRIPT)
VERSIONSCRIPT=""
case "$host_os" in
*linux*|*gnu*)
VERSIONSCRIPT="-Wl,--version-script"
;;
*solaris*)
if test "${GCC}" = "yes"; then
VERSIONSCRIPT="-Wl,--version-script"
fi
;;
esac
])
AC_DEFUN([AC_LIBREPLACE_MDLD],
[
AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_LINKER])