How to specify (default) compiler options and choose which compiler

Rainer Müller raimue at
Mon Feb 16 17:01:33 PST 2009

Marcus Calhoun-Lopez wrote:
> You could write a shell script which overrides the default values
> port install $1
> configure.compiler=gcc-4.2
> configure.optflags=-fast
> configure.m64=yes
> configure.march=nocona
> You can also edit the file
> ${prefix}/share/macports/Tcl/port1.0/portconfigure.tcl
> These two actions only set the default value.
> A Portfile can override your value as well.

No, command line options override values given in the Portfile.
configure.compiler can currently only be set to a different default by
editing portconfigure.tcl.


More information about the macports-users mailing list