public
Created

PostGIS configure line for Mac OS X 10.6.8

  • Download Gist
configure_postgis_macos
1 2 3 4 5 6 7
export MACOSX_DEPLOYMENT_TARGET=10.6
export CFLAGS="-Os -arch i386 -arch x86_64"
export PG_CPPFLAGS="-arch i386 -arch x86_64"
export SHLIB_LINK="-arch i386 -arch x86_64"
export LDFLAGS="-arch i386 -arch x86_64"
 
./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/share/man/ --with-geosconfig=/Library/Frameworks/GEOS.framework/unix/bin/geos-config --with-projdir=/Library/Frameworks/PROJ.framework/unix --with-gdalconfig=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config

PostgreSQL must be compiled with -arch i386 -arch x86_64 to make it work.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.