This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Provide a fixed $DynaLoader::XS_VERSION of 1.05, to fix bug #32539
[perl5.git] / ext / DynaLoader / Makefile.PL
CommitLineData
42793c05
TB
1use ExtUtils::MakeMaker;
2
3WriteMakefile(
d2cedf73 4 NAME => 'DynaLoader',
4ad3186e 5 LINKTYPE => 'static',
760ac839 6 DEFINE => '-DPERL_CORE -DLIBC="$(LIBC)"',
69158f75 7 MAN3PODS => {}, # Pods will be built by installman.
4ad3186e 8 SKIP => [qw(dynamic dynamic_lib dynamic_bs)],
9 XSPROTOARG => '-noprototypes', # XXX remove later?
bfab39a2 10 VERSION_FROM => 'DynaLoader_pm.PL',
2c90d8f1 11 XS_VERSION => '1.05',
9426adcd
IZ
12 PL_FILES => {'DynaLoader_pm.PL'=>'DynaLoader.pm',
13 'XSLoader_pm.PL'=>'XSLoader.pm'},
14 PM => {'DynaLoader.pm' => '$(INST_LIBDIR)/DynaLoader.pm',
15 'XSLoader.pm' => '$(INST_LIBDIR)/XSLoader.pm'},
abb9e9dc 16 depend => {'DynaLoader.o' => 'dlutils.c'},
f91101c9
GS
17 clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm ' .
18 'XSLoader.pm'},
42793c05
TB
19);
20
42793c05
TB
21sub MY::postamble {
22 '
d2cedf73 23DynaLoader.xs: $(DLSRC)
a03832f2 24 $(RM_F) $@
d2cedf73 25 $(CP) $? $@
42793c05
TB
26
27# Perform very simple tests just to check for major gaffs.
28# We can\'t do much more for platforms we are not executing on.
29test-xs:
30 for i in dl_*xs; \
005c1a0e 31 do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
42793c05
TB
32 done
33';
34}
35