+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
# 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