Mailinglist Archive: opensuse (1640 mails)

< Previous Next >
Re: How to deploy a dynamically linked perl XS library? (Re: [opensuse] libperl.a gone in opensuse-11.0?)
  • From: Josef Wolf <jw@xxxxxxxxxxxxx>
  • Date: Fri, 1 Aug 2008 18:09:49 +0200
  • Message-id: <20080801160949.GF26387@xxxxxxxxxxxxxx>
On Fri, Aug 01, 2008 at 10:46:39AM +0200, Michael Schroeder wrote:
On Fri, Aug 01, 2008 at 08:45:06AM +0200, Josef Wolf wrote:
The question now becomes, how to (painless) deploy a perl XS library
which makes callbacks into perl. That means, the XS library needs
access to the my_perl variable, which is declared as

static PerlInterpreter *my_perl;

in the original libperl.so

Any hints?

It should be available via the "aTHX" variable/macro. If not,
try Perl_get_context().

Thanks for the hint, Michael. I could get it working with this!
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >