Subject: Re: recent libtool broken
To: SUNAGAWA Keiki <>
From: Todd Vierling <>
List: tech-pkg
Date: 03/19/2001 14:13:07
On Sun, 18 Mar 2001, SUNAGAWA Keiki wrote:

: Hi, I have a trouble with recent libtool.  It doesn't handle
: '--mode=link' target on ELF platforms.  I reproduced this on
: i386 and macppc.

: /bin/sh ../libtool --mode=link cc  -O -Wall  -D_REENTRANT -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o -rpath /usr/pkg/lib -version-info 13:9:0 gthread.lo -lpthread
: /usr/bin/ld -shared -o .libs/ /usr/lib/crtbeginS.o  .libs/gthread.o  -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkg/lib  -L/usr/pkg/lib /usr/pkg/lib/  -R/usr/pkg/lib -R/usr/pkg/lib -soname /usr/lib/crtendS.o

Okay, that's just wrong.  Libtool should be invoking "cc -shared", not "ld
-shared" (whereas a.out platforms have to use "ld -Bshareable" without -Wl,

Nick, are you on this list?

-- Todd Vierling <>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --