Chosing the C and C++ compilers

Anders F Björklund afb at macports.org
Thu Nov 6 06:20:10 PST 2008


Akim Demaille wrote:

> Really, I just wish I had a simple means (= not by having to  
> specify it on each port command line) to specify CC and CXX.  Or  
> else, I would prefer that the hard coded values be fully qualified  
> (/usr/bin/i686-apple-darwin9-gcc-4.0.1) instead of short (/usr/bin/ 
> gcc-4.0).  In that case I have nothing special to do to use distcc  
> with macports.

/usr/bin/gcc-4.0 works for more than one arch, though. If you do a  
fat build (with -arch ppc -arch i386) then it will call both of the  
arch-specific compilers in turn. Changing compiler from gcc-4.0 to  
i686-apple-darwin9-gcc-4.0.1 would turn it into a single-arch build  
instead.

--anders



More information about the macports-users mailing list