[OSM-dev] [novice] osm2pgsql: mac os x: faster with compiler optimized flag -fast instead of -O2

Jon Burgess jburgess777 at googlemail.com
Sat Feb 7 23:38:22 GMT 2009


On Sat, 2009-02-07 at 23:09 +0100, Ceriel Jacobs wrote:
> In building and benchmarking open source projects on Mac OS X 10.5  
> intel (for example Mysql),
> highest performance was returned with flag -fast instead of -O2.
> 
> When trying to apply these settings to the osm2pgsql Makefile, by  
> replacing:
> 1. CFLAGS += -g -O2 -Wall -Wextra
> with
> 1. CFLAGS += -g -fast -Wall -Wextra
> and
> 2. CXXFLAGS += -g -O2 -Wall -DGEOS_INLINE $(CFLAGS)
> with
> 2. CXXFLAGS += -g -fast -Wall -DGEOS_INLINE $(CFLAGS)
> 
> Checked out revision 13576, returns several errors when trying to make  
> (see below).
> 
> Has anyone tried this -fast FLAG in the make process of osm2pgsql?
> Or will this definately not work, and why?
> 
> ~Ceriel

Try r13578. It should have fixes for the error and the warnings.

I have not tried OSX. I can not tell you how it will effect the
performance.

	Jon






More information about the dev mailing list