diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-13 05:56:36 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-13 05:56:36 +0000 |
commit | f1f802f72d2a5ab6b92210fa96748318d879b276 (patch) | |
tree | 38a2c8acc9d2920b5a925e34728c12811415d88e /Makefile.SH | |
parent | 1bd427d5f57811e9fe1d95b1b3e11e517265645f (diff) | |
download | perl-f1f802f72d2a5ab6b92210fa96748318d879b276.tar.gz |
Integrate change #8786 from maintperl, posix-bc byacc handling.
p4raw-link: @8786 on //depot/maint-5.6/perl: 791ece1b591d74df257917b202df7d8c57073d8c
p4raw-id: //depot/perl@8787
p4raw-integrated: from //depot/maint-5.6/perl@8785 'merge in'
Makefile.SH (@8657..)
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH index 81b01368a9..37679af4ea 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -123,6 +123,15 @@ for f in $nonxs_ext; do nonxs_list="$nonxs_list ext/$f/pm_to_blib" done +# Handle the usage of different yaccs in posix-bc (During Configure we +# us yacc for perly.y and byacc for a2p.y. The makefiles must use the +# same configuration for run_byacc!): +case "$osname" in + posix-bc) + byacc=$yacc + ;; +esac + echo "Extracting Makefile (with variable substitutions)" $spitshell >Makefile <<!GROK!THIS! # Makefile.SH @@ -990,6 +999,7 @@ os390|posix-bc) mv -f y.tab.c a2p.c chmod u+w a2p.c sed -e 's/fprintf *( *stderr *,/PerlIO_printf(Perl_debug_log,/g' \ + -e 's|^static void __YY_YACC_MAIN.*BS2000.*|/*static main deleted*/|' \ -e 's/y\.tab/a2p/g' a2p.c >a2p.tmp && mv a2p.tmp a2p.c xxx="$xxx a2p.c" fi |