Author: jelmer Date: 2007-11-06 01:05:19 +0000 (Tue, 06 Nov 2007) New Revision: 25846
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25846 Log: Add configure test for -Wl,--export-dynamic. Added: branches/SAMBA_4_0/source/lib/replace/libreplace_ld.m4 Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/lib/ldb/Makefile.in branches/SAMBA_4_0/source/lib/ldb/configure.ac branches/SAMBA_4_0/source/lib/replace/libreplace.m4 Changeset: Property changes on: branches/SAMBA_4_0 ___________________________________________________________________ Name: bzr:revision-info ...skipped... Name: bzr:file-ids ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Modified: branches/SAMBA_4_0/source/lib/ldb/Makefile.in =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/Makefile.in 2007-11-06 00:49:54 UTC (rev 25845) +++ branches/SAMBA_4_0/source/lib/ldb/Makefile.in 2007-11-06 01:05:19 UTC (rev 25846) @@ -34,7 +34,7 @@ SHLIBEXT = @SHLIBEXT@ -LD_EXPORT_DYNAMIC = -Wl,--export-dynamic +LD_EXPORT_DYNAMIC = @LD_EXPORT_DYNAMIC@ CFLAGS=-g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \ $(POPT_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) \ Modified: branches/SAMBA_4_0/source/lib/ldb/configure.ac =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/configure.ac 2007-11-06 00:49:54 UTC (rev 25845) +++ branches/SAMBA_4_0/source/lib/ldb/configure.ac 2007-11-06 01:05:19 UTC (rev 25846) @@ -71,5 +71,7 @@ AC_SUBST(TESTS) AC_SUBST(EXTRA_OBJ) +AC_LD_EXPORT_DYNAMIC + m4_include(libldb.m4) AC_OUTPUT(Makefile ldb.pc) Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4 =================================================================== --- branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2007-11-06 00:49:54 UTC (rev 25845) +++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2007-11-06 01:05:19 UTC (rev 25846) @@ -355,5 +355,6 @@ ]) m4_include(libreplace_cc.m4) +m4_include(libreplace_ld.m4) m4_include(libreplace_macros.m4) m4_include(autoconf-2.60.m4) Added: branches/SAMBA_4_0/source/lib/replace/libreplace_ld.m4 =================================================================== --- branches/SAMBA_4_0/source/lib/replace/libreplace_ld.m4 2007-11-06 00:49:54 UTC (rev 25845) +++ branches/SAMBA_4_0/source/lib/replace/libreplace_ld.m4 2007-11-06 01:05:19 UTC (rev 25846) @@ -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" +])
