diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2007-03-31 13:50:18 -0400 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2007-04-01 12:57:24 +0000 |
commit | 2eacba2f038fca0c7ce4713e73ef229faa3f3caa (patch) | |
tree | 11330c09c2c6b2fdf871ac8c18dd98de8085c06e /Makefile.micro | |
parent | e3abe207f764929a97eafa503a3780d5b7636ed2 (diff) | |
download | perl-2eacba2f038fca0c7ce4713e73ef229faa3f3caa.tar.gz |
microperl plus missing config vars
Message-ID: <460ED79A.5030809@iki.fi>
p4raw-id: //depot/perl@30823
Diffstat (limited to 'Makefile.micro')
-rw-r--r-- | Makefile.micro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.micro b/Makefile.micro index 890140bff2..61a758e71b 100644 --- a/Makefile.micro +++ b/Makefile.micro @@ -5,6 +5,7 @@ CFLAGS = $(DEFINES) $(OPTIMIZE) LIBS = -lm _O = .o ENV = env +PERL = perl all: microperl @@ -36,6 +37,11 @@ distclean: clean # The microconfiguration. +# Cannot use $$ in the command line itself, so using var expansion instead. +Config = '$$Config{$$1}' +patch_uconfig: + $(PERL) -MConfig -pi -e "s/^((?:short|int|long(?:dbl|long)?|ptr|double|[iun]v|u?quad|[iu]\d+|fpos|lseek)(?:size|type)|byteorder|d_quad|quadkind|use64.+)=.*/\\1='"$(Config)"'/g" uconfig.shx + regen_uconfig uconfig.h: uconfig.sh $(ENV) CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH |