This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
PATCH for libiberty when NOT using --enable-shared
- To: law at cygnus dot com
- Subject: PATCH for libiberty when NOT using --enable-shared
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Wed, 20 May 1998 10:42:32 +0200 (MET DST)
- Cc: egcs-bugs at cygnus dot com
- References: <199805161729.KAA00534@mail.earthlink.net> <7877.895345781@hurl.cygnus.com>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
Jeff, the recent changes to libiberty introduced a default for
enable_shared which is different from what the toplevel scripts are
using.
If one omits --enable-shared, ${enable_shared}'s value is "" which is
then used by libiberty's config.table to say `OK, the user didn't
explicitly say "no", so we're going to build a shared lib'.
This small patch corrects it.
manfred
Wed May 20 10:24:01 1998 Manfred Hollstein <manfred@s-direktnet.de>
* config.table (shared): Default to "no" if ${enable_shared}
is unset or empty; this logic is used by the toplevel
configure scripts, too.
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19980520.orig/libiberty/config.table egcs-19980520/libiberty/config.table
--- egcs-19980520.orig/libiberty/config.table Mon May 18 14:05:17 1998
+++ egcs-19980520/libiberty/config.table Mon May 18 14:05:17 1998
@@ -13,6 +13,7 @@ frags=$frag
case "${enable_shared}" in
yes) shared=yes ;;
no) shared=no ;;
+ "") shared=no ;;
*) shared=yes ;;
esac
if [ "${shared}" = "yes" ]; then