This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make OPTIMIZE=...
authorRobin Barker <RMBarker@cpan.org>
Thu, 6 Sep 2001 13:31:37 +0000 (14:31 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 6 Sep 2001 14:07:45 +0000 (14:07 +0000)
Message-Id: <200109061231.NAA25265@tempest.npl.co.uk>

p4raw-id: //depot/perl@11918

x2p/Makefile.SH
x2p/cflags.SH

index fe4fb1e..68c63a7 100755 (executable)
@@ -58,6 +58,8 @@ FIRSTMAKEFILE = $firstmakefile
 
 TRNL = '$trnl'
 
 
 TRNL = '$trnl'
 
+OPTIMIZE = $optimize
+
 .SUFFIXES: .c \$(OBJ_EXT)
 
 !GROK!THIS!
 .SUFFIXES: .c \$(OBJ_EXT)
 
 !GROK!THIS!
@@ -65,7 +67,7 @@ TRNL = '$trnl'
 cat >>Makefile <<'!NO!SUBS!'
 
 REALPERL = ../perl
 cat >>Makefile <<'!NO!SUBS!'
 
 REALPERL = ../perl
-CCCMD = `sh $(shellflags) cflags $@`
+CCCMD = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $@`
 
 public = a2p s2p find2perl
 
 
 public = a2p s2p find2perl
 
index 779035f..255f586 100755 (executable)
@@ -48,6 +48,13 @@ case $PERL_CONFIG_SH in
        ;;
 esac
 
        ;;
 esac
 
+case "X$1" in
+Xoptimize=*|X"optimize=*")
+        eval "$1"
+        shift
+        ;;
+esac
+
 also=': '
 case $# in
 1) also='echo 1>&2 "     CCCMD = "'
 also=': '
 case $# in
 1) also='echo 1>&2 "     CCCMD = "'