]> 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:21 +0000 (07:08 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 4 Apr 1999 07:08:21 +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 0d8545ad69dc5a4bf97016d94a6a90186e0ad419..c28240574bfdf0e92b0e0677e4eab3b6ccc8c6d2 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, 
@@ -24,8 +28,6 @@
        uniquifying the extract directory.  It is now named after the new
        library *and* the old one, and lives in the objdir of the new one.
 
-1999-04-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
-
        * ltmain.in (-L*): do not abort just because a directory specified 
        with -L does not exist; just warn and discard it
 
index f2b24582725dc20eeca2ca48d619a1f61312203b..391478a83d66f314719cccb26e6fe3bbc761dc88 100755 (executable)
@@ -1073,7 +1073,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
@@ -1322,12 +1322,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