As I'm applying the fixes for aix build, I'd like to cleanup WrapXS.pm not to create/install .exp and .def files on platforms where they aren't needed.

So is this correct that .exp are needed only on AIX and .def on win32?

WrapXS.pm:generate
    $self->write_export_file('exp') if $^O eq 'aix';
    $self->write_export_file('def'); #XXX if $^O eq 'Win32'

can we s/; #XXX//; here?

I've written a small package Devel::FakeOSName which you can use as:

perl -MDevel::FakeOSName=aix Makefile.PL ...

which will make $^O and $Config::Config{osname} return 'aix' (no matter what the real platform is), so this is a better way to test other platforms if needed. Hopefully I'll put it on CPAN soon.

Also, Randy, do we need to install .def files so the XS extensions can be built on win32?

I'll soon release a new Apache::Peek so we can test what's needed to build 3rd party modules which rely on xs code, referencing mod_perl api.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to