Click here to get back home

Using Module::Build to XS

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Using Module::Build to XS Raga 12-18-2007
Posted by Raga on December 18, 2007, 4:50 pm
Please log in for more thread options
Hi,

I have volunterred to maintain the LSF::Base and LSF::Batch modules on
CPAN , I am in the process of rewriting the module's Makefile.PL
(which uses the ExtUtils::MakeMaker) to use the Module::Build's
Build.PL process. Unfortunately I have not been very successful in
writing the Build.PL to do all the complies. Also I have not been able
to gather any information regarding the use of Module::Build to do XS
complies. Any inputs on where I can get this information would be
really helpful.

I have tried to write the Build.PL by using the following code snippet
but this was not able to create the shared object for Dynaloader to
load.

my $builder = Module::Build->new(
module_name => 'LSF::Base',
...
c_source => 'lib/',
include_dirs => [ $lsf_includedir ] ,
extra_linker_flags => $libs,
extra_compiler_flags => '-DPERL_POLLUTE',
create_makefile_pl => 'traditional'
);


Also any inputs on the Module::Build's equivalent of the below
Mafile.PL will be greatly appreciated.

WriteMakefile(
'NAME' => 'LSF::Base',
'VERSION_FROM' => 'Base.pm',
'LIBS' => [$libs ],
'DEFINE' => '-DPERL_POLLUTE',
'OBJECT' => '$(O_FILES)',
'INC'         => "-I$lsf_includedir"
);

If this is a RTFM please do scream at me

Thanks
Raga

Similar ThreadsPosted
List of sample Build::Module Build.PL May 7, 2007, 6:49 pm
Win32:Printer Windows x86 build with FreeImage.dll support build issues May 29, 2008, 2:58 pm
Help with Module::Build June 19, 2006, 10:50 am
DBD-Pg for Perl 5.8.4 Build 810 December 11, 2004, 1:05 pm
Perl/Tk build fails on HP-UX February 27, 2006, 4:58 pm
Filesys::SmbClient Build Errors July 14, 2006, 1:36 pm
HTML-Parser-3.56 build problem February 6, 2007, 4:32 am
Re: Best Practice - Modules to build a web application March 17, 2007, 10:10 am
XSUB example in perlxstut fails to build on Win32 June 9, 2005, 11:40 pm
XML::Sax::Writer build error (long data) August 2, 2005, 6:54 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap