Re: Integration of a Perl XS module with an Automake build system

2015-07-10 Thread Gavin Smith
On 3 July 2015 at 20:31, Russ Allbery wrote: > You can see the approach that I took in various of my packages, such as: > > http://git.eyrie.org/?p=kerberos/webauth.git;a=blob;f=Makefile.am;h=2cc0aba845f450afcd60a6c01e02a33cb9bdc803;hb=9d3555c7f9047f5ac1c67237379072df5b864b82 > > Search for BINDIN

Re: Integration of a Perl XS module with an Automake build system

2015-07-03 Thread Russ Allbery
Gavin Smith writes: > I wonder if anyone could give pointers to advice on how to integrate a > Perl XS module with an Automake build system? Over at the Texinfo > project we're starting to replace parts of makeinfo with loadable > native-code modules, for speed. You can see the approach that I t

Re: Integration of a Perl XS module with an Automake build system

2015-07-03 Thread Gavin Smith
On 30 June 2015 at 23:06, Bob Friesenhahn wrote: > If you use a system which supports several completely different compilers > targeting the same ABI, you immediately find dismay unless you compile > Perl using the same compiler you plan to use. > > This is quite evident on Solaris systems which

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Gavin Smith
On 30 June 2015 at 23:06, Bob Friesenhahn wrote: > On Tue, 30 Jun 2015, Gavin Smith wrote: >> >> >> What you say about using a different compiler is worrying, though, and >> I hadn't thought about it before. So basically when compiling an XS >> module, you need to use whatever compiler was used to

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Bob Friesenhahn
On Tue, 30 Jun 2015, Gavin Smith wrote: What you say about using a different compiler is worrying, though, and I hadn't thought about it before. So basically when compiling an XS module, you need to use whatever compiler was used to compile perl in the first place? I think we could retrieve this

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Gavin Smith
On 30 June 2015 at 22:41, Bob Friesenhahn wrote: >> as well as a heap of other variable definitions copied from the >> MakeMaker Makefile. Now I have to see how ExtUtils:MakeMaker knew what >> flags to use to see if I can replicate it. > > > These definitely come from how Perl was originally compi

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Bob Friesenhahn
On Tue, 30 Jun 2015, Gavin Smith wrote: as well as a heap of other variable definitions copied from the MakeMaker Makefile. Now I have to see how ExtUtils:MakeMaker knew what flags to use to see if I can replicate it. These definitely come from how Perl was originally compiled and built. If a

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Gavin Smith
On 30 June 2015 at 14:25, Bob Friesenhahn wrote: > In addition to behavior issues, a major problem is that the re-link > capabilities offered by libtool are not available. If one links from the > Perl module to a shared library in the build tree, then there is the risk of > continued reference to

Re: Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Bob Friesenhahn
On Tue, 30 Jun 2015, Gavin Smith wrote: Hello all, I wonder if anyone could give pointers to advice on how to integrate a Perl XS module with an Automake build system? Over at the Texinfo project we're starting to replace parts of makeinfo with loadable native-code modules, for speed. The prob

Integration of a Perl XS module with an Automake build system

2015-06-30 Thread Gavin Smith
Hello all, I wonder if anyone could give pointers to advice on how to integrate a Perl XS module with an Automake build system? Over at the Texinfo project we're starting to replace parts of makeinfo with loadable native-code modules, for speed. The problem is that the Makefiles produced by ExtUt