From owner-freebsd-ports Mon May 31 13: 1:49 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 5207B151EA for ; Mon, 31 May 1999 13:01:44 -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 QAA98127; Mon, 31 May 1999 16:01:26 -0400 (EDT) Date: Mon, 31 May 1999 16:01:26 -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: <19990531121511.A15449@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 Mon, 31 May 1999, J. Heinrich wrote: > Is there a way to make egcs the default compiler for building ports > on 3.1-RELEASE (e.g. CC=/usr/local/bin/gcc in a particular config > file)? What other variables would need to be set (GXX, etc.)? > > Is there a good argument against doing this? > > I'm trying to build a KDE app that won't compile with the stock > gcc/g++ (2.7.2.1); it compiles successfully under the egcs-1.1.2 > port but won't link, presumably because the KDE & Qt ports (libs) > were built earlier with gcc-2.7.2. I'm looking for a way to force > all subsequent port builds to use the same compiler after rebuilding > KDE/Qt with egcs (besides adjusting $PATH). Most often, you can do: setenv CC (path to your egcs compiler) setenv CXX (path to your egcs C++ compiler) and that'll do what you want, because the majority of well-written apps use makefile semantics to abstract the value of the compilers. It's not guaranteed, but it *does* work most times. It's the least invasive. You can do other things, like sticking /usr/local/bin in your path ahead of /usr/bin, but I sure don't like that. You could, while you install egcs, set PREFIX to some special place that's completely isolated, then just stick that one place ahead of /usr/bin in your path, that would irritate me a lot less. I usuall really dislike sticking /usr/local/bin ahead of /usr/bin in general. For one thing, that brings in the gnu make ahead of our system make, and I don't like gnu make too much. > > -- > jh > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > ----------------------------+----------------------------------------------- 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