From 53f990aef866470cbd360a0f3144bb7907a86c22 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 4 Apr 1999 07:08:21 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++-- ltconfig.in | 9 ++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d8545ad6..c28240574 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, @@ -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 - * ltmain.in (-L*): do not abort just because a directory specified with -L does not exist; just warn and discard it diff --git a/ltconfig.in b/ltconfig.in index f2b245827..391478a83 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 -- 2.47.3