From: Simo Sorce Date: Mon, 15 Jun 2009 20:20:06 +0000 (-0400) Subject: Add new replace check for --version-script X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=f518e37c0912a54d5434f7639ba44f53d3455582;p=abartlet%2Fsamba.git%2F.git 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. --- diff --git a/lib/replace/libreplace_ld.m4 b/lib/replace/libreplace_ld.m4 index 8ab5e78765e..90c5be6b4e6 100644 --- a/lib/replace/libreplace_ld.m4 +++ b/lib/replace/libreplace_ld.m4 @@ -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])