Re: -fPIC

From: Kurt Roeckx <kurt(at)roeckx(dot)be>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: -fPIC
Date: 2005-09-11 18:49:00
Message-ID: 20050911184900.GA27293@roeckx.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Sep 11, 2005 at 05:49:40PM +0200, Peter Eisentraut wrote:
> So far, we have tended to use -fpic to compile position-independent code
> until we have received some sort of overflow that forced the use of
> -fPIC. Since 8.0, the makefiles to build shared libraries are also
> available to external modules through the pgxs system, so we cannot
> exactly check anymore what the fpic vs. fPIC requirement of each
> conceivable module is. I have just received confirmation that PL/Java
> needs -fPIC to compile on Alpha and S/390 on Linux, so we need to make
> at least that change, but maybe it's more prudent to change to -fPIC
> across the board now. Comments?

Can we avoid those relocation by not exporting variables and
function that shouldn't be exported and marking them static? Or
is static already being used properly?

Kurt

In response to

  • -fPIC at 2005-09-11 15:49:40 from Peter Eisentraut

Browse pgsql-hackers by date

  From Date Subject
Next Message Hans-Jürgen Schönig 2005-09-11 19:37:25 Re: random system table corruption ...
Previous Message Alvaro Herrera 2005-09-11 18:01:46 Re: random system table corruption ...