Subject: Re: recent libtool broken
To: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
From: Todd Vierling <tv@wasabisystems.com>
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 libgthread.la -rpath /usr/pkg/lib -version-info 13:9:0 gthread.lo -lpthread
: /usr/bin/ld -shared -o .libs/libgthread.so.13.9 /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/libpthread.so  -R/usr/pkg/lib -R/usr/pkg/lib -soname libgthread.so.13 /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,
prefixes).

Nick, are you on this list?

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --  http://www.wasabisystems.com/