Re: Compile errors when building 32-bit on 64-bit system

From: Andy Shellam <andy-lists(at)networkmail(dot)eu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Compile errors when building 32-bit on 64-bit system
Date: 2009-07-05 22:38:10
Message-ID: 4A512B52.8040601@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Harald Fuchs 2009-07-06 09:51:12 Re: order by question
Previous Message Tom Lane 2009-07-05 22:34:25 Re: Compile errors when building 32-bit on 64-bit system