[postgis-users] OSX Server (Lion) linking failures on i386 architecture
Jerry Carter
jerry at jerrycarter.org
Wed Sep 14 09:16:13 PDT 2011
I'm trying to compile PostGIS 1.5.3 and getting tripped up with 32 vs. 64 bit. Following the normal process,
cd postgis-1.5.3
./configure
make
compilation proceeds but the link fails.
ld: warning: ignoring file ../liblwgeom/liblwgeom.a, file was built for archive which is not the architecture being linked (i386)
On the linking step, I noticed that the architecture flags specify both 32 and 64 bit, i.e. "-arch x86_64 -arch i386", but can't figure out how to disable 32 bit. I've already rebuilt Proj.4 4.7.0 and GEOS 3.2.2 as hybrid 32+64 bit libraries.
Any suggestions to either disable 32-bit entirely for PostGIS or to get the makefiles to build liblwgeom as a hybrid? Thanks much.
-=- Jerry
P.S. I am using GCC version 'i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1' which is shipped with Xcode 4.2.
More information about the postgis-users
mailing list