How to compile a port with clang?
Jeremy Huddleston
jeremyhu at macports.org
Sun Jul 10 10:44:04 PDT 2011
On Jul 10, 2011, at 10:19 AM, Mojca Miklavec wrote:
> Hello,
>
> I would like to try to compile fontforge with clang compiler (since
> the default one doesn't work). What exactly should I do?
Why does it fail with the default compiler? You should open a ticket for that.
> I was playing with portconfigure.tcl, but I'm not sure that I didn't
> mess up something (I don't know what exactly I have to change and I
> also didn't see any clang++ mention in that file).
You can change the compiler for just that port in the Portfile. Look at libsdl and wine for examples.
You can change the global default in portconfigure.tcl
I also sent in a patch to macports-dev about a month ago which would provide an option in macports.conf to set the default, but that's not going to happen in its current form.
>
> Or do I have to recompile macports?
no.
More information about the macports-users
mailing list