On Friday 01 August 2008 18:56:49 Josef Wolf wrote:
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org