Re: Compile errors when building 32-bit on 64-bit system - Mailing list pgsql-admin

From Andy Shellam
Subject Re: Compile errors when building 32-bit on 64-bit system
Date
Msg-id 4A512B52.8040601@networkmail.eu
Whole thread Raw
In response to Re: Compile errors when building 32-bit on 64-bit system  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Tom,
> That sounds like you hadn't yet figured out to set CFLAGS too.
>
Actually if you see my first post, the only thing I'd changed was
replaced "LDFLAGS="-m32"" with the "LD" variable and I had also tried
adding that back in alongside CFLAGS and LD but to no avail.

I compiled the module by hand - all that required was the linking
command that compiled the two files for the contrib/spi module to have
the flag "-m32" as defined in the configure line.
> Google or no Google, you're setting the wrong variable.
>
Like I said, I had already tried LDFLAGS (and, yes, CFLAGS too) which
threw up the problem with the SUBSYS.o file.
> You might possibly have better luck using 8.4 for this, as we got rid of
> the intermediate SUBSYS.o files, which tend to confuse matters in a
> multiarch environment.
>
I'm due to migrate onto 8.4 shortly so we'll see how things go then.


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Compile errors when building 32-bit on 64-bit system
Next
From: Vanessa Lopez
Date:
Subject: REINDEX "is not a btree"