]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, darwin): Add
authorChristoph Egger <Christoph_Egger@gmx.de>
Fri, 11 Oct 2002 15:52:08 +0000 (15:52 +0000)
committerRobert Boehne <rboehne@gnu.org>
Fri, 11 Oct 2002 15:52:08 +0000 (15:52 +0000)
-install_name to the link line only when -dynamiclib is
specified for a module.  Use -bind_at_load when linking C++
shared libraries.

ChangeLog
libtool.m4

index 902677a904711a5d3dbd8d004423eecfdc75a1d5..f32fbbc4e3b6e886da2427b37ef141fc091b32e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-10-11  Christoph Egger  <Christoph_Egger@gmx.de>
+
+       * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, darwin): Add
+       -install_name to the link line only when -dynamiclib is
+       specified for a module.  Use -bind_at_load when linking C++
+       shared libraries.
+
 2002-10-04  Elizabeth Barham  <soggytrousers@yahoo.com>
 
        * libtool.m4 (AC_LIBTOOL_SETUP): GCC now checks -shared to
index 7b454202ec6b070d8b6459fbb8c1f43e4c22fe7b..d72ba760ef74f36e9d2ac13ace3dd2b219d3b414 100644 (file)
@@ -4950,7 +4950,7 @@ EOF
       #        cross-compilation, but unfortunately the echo tests do not
       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
       #               `"' quotes if we put them in here... so don't!
-      _LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
       # We need to add '_' to the symbols in $export_symbols first
       #_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols'
       _LT_AC_TAGVAR(hardcode_direct, $1)=yes