From: Christoph Egger Date: Fri, 11 Oct 2002 15:52:08 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, darwin): Add X-Git-Tag: release-1-5~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b821d447f094a6eaa8d85d01a394fa587428cee2;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 902677a90..f32fbbc4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-10-11 Christoph Egger + + * 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 * libtool.m4 (AC_LIBTOOL_SETUP): GCC now checks -shared to diff --git a/libtool.m4 b/libtool.m4 index 7b454202e..d72ba760e 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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