diff options
author | jelmer <jelmer@samba.org> | 2007-11-06 01:05:19 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-06 09:38:57 +0100 |
commit | 0627ebc62054e217fcf3c9dda38ae643b528680d (patch) | |
tree | 03e5700c9116cf82268b4b75f42479a04add7c02 /source3/lib/replace/libreplace_ld.m4 | |
parent | f16544ad3b167113a352605ffb0f7bb79116eff3 (diff) | |
download | samba-0627ebc62054e217fcf3c9dda38ae643b528680d.tar.gz samba-0627ebc62054e217fcf3c9dda38ae643b528680d.tar.bz2 samba-0627ebc62054e217fcf3c9dda38ae643b528680d.zip |
Add configure test for -Wl,--export-dynamic.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
Diffstat (limited to 'source3/lib/replace/libreplace_ld.m4')
-rw-r--r-- | source3/lib/replace/libreplace_ld.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/replace/libreplace_ld.m4 b/source3/lib/replace/libreplace_ld.m4 new file mode 100644 index 0000000000..8d7d3d7ebb --- /dev/null +++ b/source3/lib/replace/libreplace_ld.m4 @@ -0,0 +1,10 @@ +AC_DEFUN([AC_LD_EXPORT_DYNAMIC], +[ +saved_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS -Wl,--export-dynamic" +AC_LINK_IFELSE([ int main() { return 0; } ], +[ LD_EXPORT_DYNAMIC=-Wl,--export-dynamic ], +[ LD_EXPORT_DYNAMIC= ]) +AC_SUBST(LD_EXPORT_DYNAMIC) +LDFLAGS="$saved_LDFLAGS" +]) |