Subject: Re: pkg/11189: pkg tcl-8.3.2 won't compile on i386 1.4.1
To: Frederick Bruckman <fb@enteract.com>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-pkg
Date: 10/11/2000 00:38:07
On Tue, 10 Oct 2000, Frederick Bruckman wrote:

: The real problem is that libtool-1.3.5nb5 is stripping the "-Wl,"
: arguments to "cc" on a.out.

Part of the real problem is that nothing should be passing "-Wl," to
libtool.  The purpose of libtool is to eliminate hacks such as -Wl and to
use a standard set of compile options.

The fact that tcl was "converted" from a non-libtooled package contributes
to this problem showing up here, however.

: [It doesn't do that on ELF because it doesn't have to -- on ELF, linking
: is always done with "cc". On a.out, the new old behavior with nb5 is to
: link shared libraries with "ld", while executables are evidently still
: linked with "cc".]

Which is as it should be.  Only *some* versions of the a.out "cc" can cope
with "cc -shared"; older versions must use "ld -Bshareable".  However, given
that, libtool probably shouldn't strip "-Wl" on any platform, as it's a
cc-specific option (and needs to stay that way when calling cc).

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.