From: Alexandre Oliva Date: Sun, 4 Apr 1999 07:08:11 +0000 (+0000) Subject: * ltconfig.in (archive_cmds, sunos4*): Revert to -Bstatic; the X-Git-Tag: release-1-3~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e2b11f8bd81c53a34c6c09f39696d4ff62a9274;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 914e72d9e..dbd5933ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-04-04 Alexandre Oliva + * 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, diff --git a/ltconfig.in b/ltconfig.in index eb6653e4f..8b82d094c 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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