summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-06-15 16:20:06 -0400
committerSimo Sorce <idra@samba.org>2009-06-15 16:31:12 -0400
commitf518e37c0912a54d5434f7639ba44f53d3455582 (patch)
tree7f3a4b9a0d6cfb392355aa19b030f59acd747ff4 /lib
parent57ba31ca968552f28b2221b740f9b0c5bcd9911a (diff)
downloadsamba-f518e37c0912a54d5434f7639ba44f53d3455582.tar.gz
samba-f518e37c0912a54d5434f7639ba44f53d3455582.tar.xz
samba-f518e37c0912a54d5434f7639ba44f53d3455582.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/libreplace_ld.m416
1 files changed, 16 insertions, 0 deletions
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])