]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (archive_cmds, sunos4*): Revert to -Bstatic; the
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 4 Apr 1999 07:08:11 +0000 (07:08 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 4 Apr 1999 07:08:11 +0000 (07:08 +0000)
native linker doesn't even support -Bshareable, only GNU ld does.
Do not use `gcc -shared' in archive_cmds, it breaks deplibs.test.

ChangeLog
ltconfig.in

index 914e72d9e404c4de430d11801091ea596984c540..dbd5933ab34150d6b04ed7fdefb995cf83171166 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-04-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (archive_cmds, sunos4*): Revert to -Bstatic; the
+       native linker doesn't even support -Bshareable, only GNU ld does.
+       Do not use `gcc -shared' in archive_cmds, it breaks deplibs.test.
+
        * ltconfig.in: if ld_shlibs=no, set can_build_shared=no too,
        otherwise it will just be disregarded.  This would cause
        netbsd/m68k with GNU ld a.out, and certainly many other platforms, 
index eb6653e4fd03ebd933f08d2a2e830ae9a3a9b7eb..8b82d094cc79ac240f5165e3441cfdcff7669e24 100755 (executable)
@@ -1069,7 +1069,7 @@ EOF
     ;;
 
   sunos4*)
-    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
+    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
     wlarc=
     hardcode_direct=yes
     hardcode_shlibpath_var=no
@@ -1312,12 +1312,7 @@ else
     ;;
 
   sunos4*)
-    if test "$with_gcc" = yes; then
-      # Use -fPIC here because libgcc is multilibbed
-      archive_cmds='$CC -shared -fPIC -o $lib $libobjs $deplibs $linkopts'
-    else
-      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
-    fi
+    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
     hardcode_libdir_flag_spec='-L$libdir'
     hardcode_direct=yes
     hardcode_minus_L=yes