Re: Building on S390 - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Building on S390
Date
Msg-id CAM-w4HM-qUxy2PHjhTQJPkfNfGGuaS7QDgXu8M=H3b1o-OeKQw@mail.gmail.com
Whole thread Raw
In response to Re: Building on S390  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Building on S390  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Building on S390  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers

On Fri, Nov 22, 2013 at 8:51 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
On 11/22/13, 12:41 PM, Michael Meskes wrote:
> Checking the Debian logs it appears that all calls use *both* which seems to do
> the right thing. And yes, it appears there is a change in XC that makes it
> break. But still, I would think there has to be a correct set of options.

According to the Debian build logs, postgres-xc compiles the entire
backend with -fPIC.  Not sure what sense that makes.

Debian policy is to always use -fPIC

IIRC -fpic is good enough as long as the total size of the library is below some limit. I'm not sure precisely what this size is that has to be below the limit but if I recall correctly it's something you have no way to determine in advance for a general purpose library. So Debian decided long long ago to just use -fPIC always.


--
greg

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Can we trust fsync?
Next
From: Michael Paquier
Date:
Subject: Re: Can we trust fsync?