diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
commit | 9444d2138b6b5264fb9381e43188986db5564e80 (patch) | |
tree | c56e68d0cadd5c59c7f243be82a7cef277d14b40 /Makefile.SH | |
parent | bdc0bf6fc8e477f7c30b05ea4c2ff791dd0f31af (diff) | |
download | perl-9444d2138b6b5264fb9381e43188986db5564e80.tar.gz |
Make PL_uudmap a constant global. Remove the run time initialisation
code, and instead use it to generate a header at perl build time.
By removing uudmap from the interpreter structure we save 256 bytes
per child thread.
p4raw-id: //depot/perl@31059
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH index 5d514104e7..3d8cae0ffc 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -483,6 +483,14 @@ opmini.c: op.c opmini\$(OBJ_EXT): opmini.c \$(CCCMD) \$(PLDLFLAGS) $DPERL_EXTERNAL_GLOB opmini.c +globals\$(OBJ_EXT): uudmap.h + +uudmap.h: generate_uudmap\$(EXE_EXT) + ./generate_uudmap\$(EXE_EXT) >uudmap.h + +generate_uudmap\$(EXE_EXT): generate_uudmap\$(OBJ_EXT) + \$(CC) -o generate_uudmap \$(LDFLAGS) generate_uudmap\$(OBJ_EXT) \$(libs) + !GROK!THIS! $spitshell >>Makefile <<'!NO!SUBS!' miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h @@ -1048,7 +1056,7 @@ veryclean: _verycleaner _mopup _clobber # Do not 'make _mopup' directly. _mopup: - rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c opmini.c + rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c opmini.c uudmap.h generate_uudmap$(EXE_EXT) -rmdir .depending -@test -f extra.pods && rm -f `cat extra.pods` -@test -f vms/README_vms.pod && rm -f vms/README_vms.pod |