From owner-freebsd-ports Tue Jun 1 18:57:27 1999 Delivered-To: freebsd-ports@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 2F90315169 for ; Tue, 1 Jun 1999 18:57:22 -0700 (PDT) (envelope-from chuckr@picnic.mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.8.5) with ESMTP id VAA10028; Tue, 1 Jun 1999 21:57:02 -0400 (EDT) Date: Tue, 1 Jun 1999 21:57:02 -0400 (EDT) From: Chuck Robey To: "J. Heinrich" Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Making egcs the default for building ports In-Reply-To: <19990601072007.A17233@y.ml.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 1 Jun 1999, J. Heinrich wrote: > On Mon, May 31, 1999 at 04:01:26PM -0400, Chuck Robey wrote: > > > Most often, you can do: > > > > setenv CC (path to your egcs compiler) > > setenv CXX (path to your egcs C++ compiler) > > But I'd have to remember to do this every time. certainly not. Either stick it in your .cshrc (or the equivalent startup file for your chosen shell) or (far better) make a shell script that changes your PATH variable, or resets your path variable back again. > > I suppose I could set these in /etc/make.conf, but that's a wider > scope than the ports tree. Could I set these in one of the > bsd.port.*.mk files in /usr/ports/Mk? NO don't do that, do the second option I list above. Call the script that sets /usr/local/bin first something like "set-egcs". You could reset your path as easily as "source .cshrc". > > Are CC & CXX the only vars that need to be set? Usually. > > > You can do other things, like sticking > > /usr/local/bin in your path ahead of /usr/bin, but I sure don't like > > that. > > Me neither. > > > ----------------------------+----------------------------------------------- > > Chuck Robey | Interests include any kind of voice or data > > chuckr@picnic.mat.net | communications topic, C programming, and Unix. > > 213 Lakeside Drive Apt T-1 | > > Greenbelt, MD 20770 | I run picnic (FreeBSD-current) > > (301) 220-2114 | and jaunt (Solaris7). > > ----------------------------+----------------------------------------------- > > -- > jh > > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@picnic.mat.net | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic (FreeBSD-current) (301) 220-2114 | and jaunt (Solaris7). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message