gcc 4.6 port for OSX Lion

vincent habchi vince at macports.org
Thu Aug 4 10:59:54 PDT 2011


Christophe,

> Well, all I need is actually C-family languages so I think it'll be ok.
> So I've chosen gcc46 port that install 4.6.01 and all seems to work fine.

You can find elsewhere (ticket #29184), or I can handle you, a portfile that will bump to latest 4.6.1.

> To use this new version, I had to change some symbolic links in /usr/bin.
> Was it right to proceed that way ? By the way, what is the difference between
> x86_64-apple-darwin11-gcc-4.6.1 and x86_64-apple-darwin11-gcc-mp-4.6?
> What does 'mp' stand for?

'MP' stands for MacPorts.

Usually, it is a *bad* idea to alter /usr/bin tools, because other parts of the systems may depend on them.
If you want to use your gcc46, you must add /opt/local/bin in your PATH variable and call gcc-mp-4.6 instead. Or, in /opt/local/bin, link your gcc46 to gcc.

Vincent


More information about the macports-users mailing list