From: Alexandre Oliva Date: Tue, 25 May 1999 18:33:03 +0000 (+0000) Subject: * ltconfig.in (solaris*, ld_shlibs): Do not enable shared X-Git-Tag: release-1-3-2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e237f3ea37d8ea69efb4abcec028ed5ba770f5b;p=thirdparty%2Flibtool.git * ltconfig.in (solaris*, ld_shlibs): Do not enable shared libraries with GNU ld 2.8.*, it's broken. Emit a warning suggesting an upgrade. Reported by Brian Ford and Ronald Pijnacker --- diff --git a/ChangeLog b/ChangeLog index 409bac729..0061668f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-05-25 Alexandre Oliva + + * ltconfig.in (solaris*, ld_shlibs): Do not enable shared + libraries with GNU ld 2.8.*, it's broken. Emit a warning + suggesting an upgrade. + Reported by Brian Ford and Ronald Pijnacker + + 1999-05-25 Frank Ch. Eigler * ltmain.in: file_magic check would not avoid cyclic links. diff --git a/ltconfig.in b/ltconfig.in index 55c67b32a..a188b293a 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1161,6 +1161,27 @@ EOF fi ;; + solaris*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** created shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts' wlarc=