Skip to content

Instantly share code, notes, and snippets.

@jorgeas80
Created March 8, 2012 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgeas80/2002495 to your computer and use it in GitHub Desktop.
Save jorgeas80/2002495 to your computer and use it in GitHub Desktop.
PostGIS configure line for Mac OS X 10.6.8
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
@jorgeas80
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment