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

From Tom Lane
Subject Re: Compile errors when building 32-bit on 64-bit system
Date
Msg-id 13761.1246832599@sss.pgh.pa.us
Whole thread Raw
In response to Compile errors when building 32-bit on 64-bit system  (Andy Shellam <andy-lists@networkmail.eu>)
Responses Re: Compile errors when building 32-bit on 64-bit system
List pgsql-admin
Andy Shellam <andy-lists@networkmail.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

pgsql-admin by date:

Previous
From: Andy Shellam
Date:
Subject: Compile errors when building 32-bit on 64-bit system
Next
From: Andy Shellam
Date:
Subject: Re: Compile errors when building 32-bit on 64-bit system