From c64b6585478be5623553d3982dd77acd374a523c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 4 Apr 1999 06:06:45 +0000 Subject: [PATCH] * 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, to incorrectly believe that shared libraries were supported, while archive_cmds was empty, causing shared libraries not to be created --- ChangeLog | 8 ++++++++ ltconfig.in | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15960124..0d8545ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-04-04 Alexandre Oliva + + * 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, + to incorrectly believe that shared libraries were supported, while + archive_cmds was empty, causing shared libraries not to be created + 1999-04-03 Alexandre Oliva * NEWS: improved support for AIX and HP/UX diff --git a/ltconfig.in b/ltconfig.in index 7f8b1060..f2b24582 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1211,7 +1211,6 @@ else freebsd1*) ld_shlibs=no - can_build_shared=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor @@ -1355,11 +1354,11 @@ else *) ld_shlibs=no - can_build_shared=no ;; esac fi echo "$ac_t$ld_shlibs" 1>&6 +test "$ld_shlibs" = no && can_build_shared=no # Check for command to grab the raw symbol name followed by C symbol from nm. echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6