Re: PL/Perl without shared libperl.a

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Perrin <andrew_perrin(at)unc(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Perl without shared libperl.a
Date: 2001-05-11 17:49:04
Message-ID: sin18jwzcf.fsf@daffy.airs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> > I'm happy enough to build a special libperl.a for postgresql's use, but
> > I don't want my general perl build to use it since perl's documentation
> > notes a significant performance hit when using a shared libperl.
>
> That advice is doubtless platform-specific, and I think it may well be
> horsepucky for Intel-based Linux. Isn't *all* code built
> position-independent on that platform?

No.

> I believe you could actually use a non-shared libperl.a on Intel Linux;
> just dike out the test for shared-ness in plperl's Makefile.PL.
> The reason it's there is we couldn't think of a direct test for
> position-independent code, which is the real requirement...

I don't have context, so I'm not sure why that would be the real
requirement. Position independent code is a mechanism to make shared
libraries more efficient. Most ELF systems support creating shared
libraries with position dependent code. It's just less efficient.

It's possible to test whether you can build a shared library with
position dependent code, if that is of interest. The GNU binutils
linker testsuite has such a test.

Ian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2001-05-11 17:58:35 Re: ALTER TABLE ADD CONSTRAINT
Previous Message Gabriel Fernandez 2001-05-11 17:42:02 Index on a function(field)