Re: BUG #1999: contrib/spi doesn't receive the configured - Mailing list pgsql-bugs

From Seneca Cunningham
Subject Re: BUG #1999: contrib/spi doesn't receive the configured
Date
Msg-id 435F9D07.1090503@ca.afilias.info
Whole thread Raw
In response to Re: BUG #1999: contrib/spi doesn't receive the configured CFLAGS  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #1999: contrib/spi doesn't receive the configured CFLAGS
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: BUG #2001: Signal 11 after concurrent inserts + updates
Next
From: Tom Lane
Date:
Subject: Re: BUG #1999: contrib/spi doesn't receive the configured CFLAGS