diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-11-28 17:15:58 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-11-28 17:18:45 +0000 |
commit | fbcaf61123069fe46010699dd41ca5f60f448361 (patch) | |
tree | bed07724daa52b9f6741f74cb245a2a1507a519c /Makefile.SH | |
parent | 603928ea21886dfb891e73164afc6b81c2793547 (diff) | |
download | perl-fbcaf61123069fe46010699dd41ca5f60f448361.tar.gz |
Generate perlmain.c using ExtUtils::Miniperl, instead of writemain.SH.
This allows writemain.SH to be removed. This also has the side effect of testing
that ExtUtils::Miniperl actually works. :-)
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-x | Makefile.SH | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH index 557f4f864a..531579368a 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -435,10 +435,10 @@ private = preplibrary $(CONFIGPM) $(CONFIGPOD) lib/ExtUtils/Miniperl.pm git_vers # Files to be built with variable substitution before miniperl # is available. sh = Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH \ - myconfig.SH writemain.SH pod/Makefile.SH + myconfig.SH pod/Makefile.SH shextract = Makefile cflags config.h makeaperl makedepend \ - makedir myconfig writemain pod/Makefile + makedir myconfig pod/Makefile addedbyconf = UU $(shextract) pstruct @@ -644,8 +644,8 @@ generate_uudmap$(HOST_EXE_EXT): generate_uudmap$(OBJ_EXT) miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h $(CCCMD) $(PLDLFLAGS) $*.c -perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE) - sh writemain $(DYNALOADER) $(static_ext) > perlmain.c +perlmain.c: $(MINIPERL_EXE) lib/ExtUtils/Miniperl.pm + $(MINIPERL) -Ilib -MExtUtils::Miniperl -e 'writemain(@ARGV)' DynaLoader $(static_ext) > perlmain.c perlmain$(OBJ_EXT): perlmain.c $(CCCMD) $(PLDLFLAGS) $*.c |