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

2009-02-17 Thread Ceriel Jacobs
Op 16 feb 2009, om 22:21 heeft Marcus Calhoun-Lopez het volgende geschreven: WARNING: All of the things I am about to mention could very easily break a MacPorts installation and should not be implemented lightly. You can say that again. I was trying to build postgresql83 with this command: $

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

2009-02-17 Thread Rainer Müller
Ceriel Jacobs wrote: Op 16 feb 2009, om 22:21 heeft Marcus Calhoun-Lopez het volgende geschreven: WARNING: All of the things I am about to mention could very easily break a MacPorts installation and should not be implemented lightly. You can say that again. I was trying to build

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

2009-02-16 Thread Ceriel Jacobs
My goal is to build speed optimised binaries for 10.5 Core2Duo: -fast - march=nocona (-m64). The -march=nocona requires gcc 4.2 or higher. The default on MacOS is still gcc 4.0. I know I can use ./port ... configure.compiler=gcc-4.2 Questions: - how to specify gcc 4.2 *by default* within

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

2009-02-16 Thread Marcus Calhoun-Lopez
Ceriel Jacobs cerieljacobs at gmail.com writes: My goal is to build speed optimised binaries for 10.5 Core2Duo: -fast - march=nocona (-m64). The -march=nocona requires gcc 4.2 or higher. The default on MacOS is still gcc 4.0. I know I can use ./port ... configure.compiler=gcc-4.2

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

2009-02-16 Thread Rainer Müller
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