diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-06 01:05:19 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:24 +0100 |
commit | 48ed51e61ec4378a0c3d4063a28d7247813548dc (patch) | |
tree | 4ddbf8065f52c7b6a35e1ba939b0436f0bd1b10d /source4/lib/replace/libreplace_ld.m4 | |
parent | f52ce954836f46c517f037a819fe0fe37f50d681 (diff) | |
download | samba-48ed51e61ec4378a0c3d4063a28d7247813548dc.tar.gz samba-48ed51e61ec4378a0c3d4063a28d7247813548dc.tar.bz2 samba-48ed51e61ec4378a0c3d4063a28d7247813548dc.zip |
r25846: Add configure test for -Wl,--export-dynamic.
(This used to be commit f67040d2a0cb8723f1bf0e9a9d90a821b38697b1)
Diffstat (limited to 'source4/lib/replace/libreplace_ld.m4')
-rw-r--r-- | source4/lib/replace/libreplace_ld.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4 new file mode 100644 index 0000000000..8d7d3d7ebb --- /dev/null +++ b/source4/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" +]) |