[ID 20011201.170] Time::HiRes in devel-perl causes segfaults for xs users
[p5sagit/p5-mst-13.2.git] / ext / DynaLoader / Makefile.PL
CommitLineData
42793c05 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',
9426adcd 11 PL_FILES => {'DynaLoader_pm.PL'=>'DynaLoader.pm',
12 'XSLoader_pm.PL'=>'XSLoader.pm'},
13 PM => {'DynaLoader.pm' => '$(INST_LIBDIR)/DynaLoader.pm',
14 'XSLoader.pm' => '$(INST_LIBDIR)/XSLoader.pm'},
abb9e9dc 15 depend => {'DynaLoader.o' => 'dlutils.c'},
f91101c9 16 clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm ' .
17 'XSLoader.pm'},
42793c05 18);
19
42793c05 20sub MY::postamble {
21 '
d2cedf73 22DynaLoader.xs: $(DLSRC)
a03832f2 23 $(RM_F) $@
d2cedf73 24 $(CP) $? $@
42793c05 25
26# Perform very simple tests just to check for major gaffs.
27# We can\'t do much more for platforms we are not executing on.
28test-xs:
29 for i in dl_*xs; \
005c1a0e 30 do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
42793c05 31 done
32';
33}
34