Tom Lane wrote:
> "Seneca Cunningham" <scunning@ca.afilias.info> writes:
>
>>$ cd postgresql-8.1beta4
>>$ export OBJECT_MODE=64
>>$ CFLAGS="-maix64 -Wl,-bbigtoc" ./configure
>>--prefix=/opt/dbs/pgsql81b4-afilias-AIX53-2005-10-25
>>--with-includes=/opt/freeware/include --enable-debug --enable-thread-safety
>>--with-libraries=/opt/freeware/lib --enable-casert
>
>
> This is your error. -Wl,-bbigtoc is not a compiler flag, it's a linker
> flag, and hence should be specified in LDFLAGS or related variables.
I redid the build changing CFLAGS to "-maix64" and LDFLAGS to
"-Wl,-bbigtoc", and gmake check still doesn't run without first
modifying src/makefiles/Makefile.aix to add CFLAGS. The -maix64 from
CFLAGS is required to get contrib/spi to build since IBM's tools are
expecting objects using the 64-bit API to operate on, and if I were to
unset OBJECT_MODE, the linking would fail as ld cannot link against
XCOFF64 files in 32-bit mode.
--
Seneca Cunningham
scunning@ca.afilias.info