Subject: pkg/15467: STRIPFLAG changes for Darwin
To: None <>
From: Amitai Schlair <>
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
>Originator:     Amitai Schlair
>Release:        NetBSD 1.5.2
Schmonz Enterprises
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
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
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)

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