Subject: Re: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Johnny C. Lam <jlam@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/02/2004 12:29:08
On Mon, 2 Feb 2004, Jeremy C. Reed wrote:
> - gccpath="`${TYPE} ${CC} | ${AWK} '{ print $$NF }'`"; \
> + gccpath="`${TYPE} ${CC:C/-.*$//} | ${AWK} '{ print $$NF }'`";
I guess this will be wrong it the first word (the modifier is done word by
word) has a dash (-) in it. Maybe it would be better to match
starting with - like:
^-.*$
(I remade my patch for that.)
Any known CC starting with - dash?
Jeremy C. Reed
http://www.reedmedia.net/