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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andy Shellam <andy-lists(at)networkmail(dot)eu>
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:23:19
Message-ID: 13761.1246832599@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Andy Shellam <andy-lists(at)networkmail(dot)eu> writes:
> I was going to post this to pgsql-hackers but figured it might be more
> suitable on this list first. I'm trying to compile a 32-bit PostgreSQL
> client on a 64-bit system, however the SPI module is not respecting the
> CFLAGS and LDFLAGS option "-m32."

> My configure line is as follows:

> CFLAGS="-m32" LD="ld -m32 -melf_i386" ./configure

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

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Shellam 2009-07-05 22:29:51 Re: Compile errors when building 32-bit on 64-bit system
Previous Message Andy Shellam 2009-07-05 20:59:18 Compile errors when building 32-bit on 64-bit system