Subject: pkg/15467: STRIPFLAG changes for Darwin
To: None <gnats-bugs@gnats.netbsd.org>
From: Amitai Schlair <schmonz+netbsd@schmonz.com>
List: netbsd-bugs
Date: 02/03/2002 08:31:00
>Number: 15467
>Category: pkg
>Synopsis: STRIPFLAG changes for Darwin
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Sun Feb 03 00:32:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Amitai Schlair
>Release: NetBSD 1.5.2
>Organization:
Schmonz Enterprises
>Environment:
System: NetBSD juice 1.5.2 NetBSD 1.5.2 (JUICE) #2: Thu Dec 27 20:52:43 EST 2001 schmonz@juice:/usr/src/sys/arch/i386/compile/JUICE i386
>Description:
Darwin's native toolchain strips too much with the default STRIPFLAG="-s",
causing linking to fail. A better value is "-Wl,-x". However, STRIPFLAG is
also used by pkgsrc for /usr/bin/install, and this is still "-s".
Now that STRIPFLAG isn't always the same for both purposes, we want two
variables: STRIPFLAG_CC and STRIPFLAG_INSTALL.
>How-To-Repeat:
Try to build e.g. net/djbdns on Darwin. Get this error:
/usr/bin/ld: can't use -s with input files containg indirect symbols (output
file must contain at least global symbols, for maximum stripping use -x)
>Fix:
http://netbsd.schmonz.com/patches/stripflag-darwin.diff
I'm not at all sure that devel/automake, editors/pico, misc/siag, or
sysutils/storage-manager are correct. (Can't test them, as they don't
build on Darwin for various other reasons.) The rest were pretty obvious
changes.
>Release-Note:
>Audit-Trail:
>Unformatted: