Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 1999 16:01:26 -0400 (EDT)
From:      Chuck Robey <chuckr@picnic.mat.net>
To:        "J. Heinrich" <lists+freebsd-ports@y.ml.org>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: Making egcs the default for building ports
Message-ID:  <Pine.BSF.4.10.9905311556510.82061-100000@picnic.mat.net>
In-Reply-To: <19990531121511.A15449@y.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9905311556510.82061-100000>