Re: -fPIC

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: -fPIC
Date: 2005-09-11 17:11:18
Message-ID: 200509111911.19797.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> PL/Java is bigger than the whole backend?

No, it's not, but the backend is not compiled as position-independent.

> The reason for -fpic vs -fPIC (on the machines where it makes any
> difference at all) is that the former is faster.

I don't doubt that, but out of curiosity, considering that everyone else
is using libtool, and libtool always uses -fPIC, what kind of impact
does this *really* have?

> I think the correct answer is for PL/Java to do s/-fpic/-fPIC/ on
> CFLAGS in its Makefile, rather than trying to force the same on
> everything else.

That would certainly work, but is that the kind of interface we want to
offer? In the extreme case, a module could end up redefining a great
deal of the shared library knowledge that it was supposed to not have
to care about.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

  • Re: -fPIC at 2005-09-11 20:57:05 from Stephen Frost
  • Re: -fPIC at 2005-09-12 01:21:14 from Greg Stark

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-09-11 17:20:48 Re: initdb profiles
Previous Message Andrew Dunstan 2005-09-11 17:06:23 Re: initdb profiles