This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.1k for perl5.001.
[perl5.git] / ext / DynaLoader / Makefile.PL
CommitLineData
42793c05
TB
1use ExtUtils::MakeMaker;
2
3WriteMakefile(
4 'LINKTYPE' => 'static',
5 'DEFINE' => '-DLIBC="$(LIBC)"',
6 'SKIP' => [qw(dynamic dynamic_lib dynamic_bs)],
7 'clean' => {FILES => 'DynaLoader.c'},
8);
9
10
11sub MY::postamble {
12 '
13DynaLoader.c: $(DLSRC)
005c1a0e 14 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $(DLSRC) >tmp && mv tmp $@
42793c05
TB
15
16# Perform very simple tests just to check for major gaffs.
17# We can\'t do much more for platforms we are not executing on.
18test-xs:
19 for i in dl_*xs; \
005c1a0e 20 do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
42793c05
TB
21 done
22';
23}
24