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: Anders Johansson <ajohansson@xxxxxxx>
- Date: Sat, 2 Aug 2008 00:44:46 +0200
- Message-id: <200808020044.46241.ajohansson@xxxxxxx>
On Friday 01 August 2008 18:56:49 Josef Wolf wrote:
And linking statically changes this how?
"static" affects scope, yes, but how you link it is irrelevant
You could use the build service for it. It is capable of building for multiple
distributions.
I am not familiar with the peculiarities of building perl addons, but after a
quick read of the "perlxstut" man page (and a quick test), it looks like the
h2xs command will generate a Makefile.PL that extracts the compilation
information you need and puts it into a Makefile. That, combined with the
build service, should allow you to build packages for all distributions that
will get automatically updated and rebuilt if there are updates to the
dependencies
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
The "static" there has pretty much to do with linking. Because of the
"static" keyword the variable is not visible/accessible outside of the
compilation unit. Therefore it is only accessible by libperl.so but
not accessible by my XSUBs.
And linking statically changes this how?
"static" affects scope, yes, but how you link it is irrelevant
How can I be sure that debian/ubuntu/mandrake/redhat/whatever use the
same compiler flags and linker flags as suse? They can even change the
flags between releases. So I have to build and maintain a dist package
for every release of every distro I want to support. And I have to
rebuild every time a distro ships a new release. That would be even
more pain than rebuild every time it is installed.
You could use the build service for it. It is capable of building for multiple
distributions.
I am not familiar with the peculiarities of building perl addons, but after a
quick read of the "perlxstut" man page (and a quick test), it looks like the
h2xs command will generate a Makefile.PL that extracts the compilation
information you need and puts it into a Makefile. That, combined with the
build service, should allow you to build packages for all distributions that
will get automatically updated and rebuilt if there are updates to the
dependencies
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |