Subject: Re: different behaviour of system cc and TOOLDIR/cc
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Todd Vierling <firstname.lastname@example.org>
Date: 06/10/2003 14:42:15
On Tue, 10 Jun 2003, Matthias Drochner wrote:
: Is there a preference for -rpath (as used in bsd.prog.mk) vs -R
: (as in bsd.lib.mk)? Would look better to have it unified.
-rpath is not accepted by "cc", so it requires -Wl prepended. On the other
hand, -R can be passed directly to "cc" (so this is what I'd recommend
using, also in <bsd.prog.mk>).
The inspiration for having "cc" accept "-R" directly comes from SysV,
specifically Solaris, whose "cc" also accepts it directly. There are quite
a few gcc targets now that accept "-R" on the "cc" command line.
-- Todd Vierling <email@example.com>