Subject: Re: Some work on pkgsrc on Darwin
To: Eric Gillespie <epg@pretzelnet.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 02/15/2002 22:02:30
On Mon, Feb 11, 2002 at 10:21:26PM -0500, Eric Gillespie wrote:
> One other thing.  There are tons of config scripts like gtk-config.
> These all include -Wl,-R for setting the RPATH.  Darwin neither has
> nor needs RPATH; it's sort of implied just by linking in a library.
> Personally, i think Apple needs to make their linker take a no-op -R
> flag, but until they do, pkgsrc will have to work around it somehow if
> it wants to be of use on Darwin.
> 
> Told you i'd forgotten something :).

[20:50:23] agc@fs0 ~ 3 > grep RPATH /usr/pkgsrc/mk/defs.*
/usr/pkgsrc/mk/defs.Darwin.mk:_USE_RPATH=               no      # don't add rpath to LDFLAGS
/usr/pkgsrc/mk/defs.Linux.mk:_USE_RPATH=                yes     # add rpath to LDFLAGS
/usr/pkgsrc/mk/defs.NetBSD.mk:_USE_RPATH=               yes     # add rpath to LDFLAGS
/usr/pkgsrc/mk/defs.SunOS.mk:_USE_RPATH=                yes             # add rpath to LDFLAGS
[20:57:21] agc@fs0 ~ 4 > grep RPATH /usr/pkgsrc/mk/bsd.pkg.mk
.    if ${_USE_RPATH} == "yes"
.if ${_USE_RPATH} == "yes"
[20:59:04] agc@fs0 ~ 5 >

Regards,
Alistair