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:29:51
Message-ID: 4A51295F.7090104@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

> Doubtless, your problem is that you're setting LD not LDFLAGS.
>

Nope, I originally had LDFLAGS set to "-m32" instead of LD, and it
failed with another error trying to link the localtime.o object (which
it had compiled as 64-bit) to create SYS-something-or-other.o (which it
was trying to create as 32-bit.) A quick Google revealed setting that
flag in the LD environment variable, which got it a bit further but then
bought up this error.

Everything else compiled fine then, it's just the contrib/spi module.

Andy

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2009-07-05 22:34:25 Re: Compile errors when building 32-bit on 64-bit system
Previous Message Tom Lane 2009-07-05 22:23:19 Re: Compile errors when building 32-bit on 64-bit system