Archive for March, 2006

G4/G5 compiler options

Wednesday, March 8th, 2006

To optimize for G5 is easy:

$ CFLAGS=”-fast” ./configure

For G4 you probably want the following:

$ CFLAGS=”-fast -mcpu=7450″ ./configure

If you are compiling some shared libs or get the following error:

has local relocation entries in non-writable section (__TEXT,__text)

then add -fPIC to CFLAGS