]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (solaris*, ld_shlibs): Do not enable shared
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 25 May 1999 18:33:03 +0000 (18:33 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 25 May 1999 18:33:03 +0000 (18:33 +0000)
libraries with GNU ld 2.8.*, it's broken.  Emit a warning
suggesting an upgrade.
Reported by Brian Ford <ford@vss.fsi.com> and Ronald Pijnacker
<Ronald.Pijnacker@best.ms.philips.com>

ChangeLog
ltconfig.in

index 409bac729c9dd26ce092045eeca6585473bbb598..0061668f695128599cd04084621ff3febf30a72e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * 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 <ford@vss.fsi.com> and Ronald Pijnacker
+       <Ronald.Pijnacker@best.ms.philips.com>
+
 1999-05-25  Frank Ch. Eigler <fche@cygnus.com>
 
        * ltmain.in: file_magic check would not avoid cyclic links.
index 55c67b32a33177ba3d68c0c916881d11c044a570..a188b293a4177f948c064665662a642116d5ec50 100755 (executable)
@@ -1161,6 +1161,27 @@ EOF
     fi
     ;;
 
+  solaris*)
+    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+      ld_shlibs=no
+      cat <<EOF 1>&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=