X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl_exp.SH;h=51c3ab258470f0a5c05f19e7a299beaa850af520;hb=8f580fb8c3adcd8061f0e72f718bbf4ff930d697;hp=b8b2907024cd1c27bb51cb0ff37d211071815ea7;hpb=8c3ad6a18eed4decec506dcaa734e6a7dbcf5553;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl_exp.SH b/perl_exp.SH index b8b2907..51c3ab2 100644 --- a/perl_exp.SH +++ b/perl_exp.SH @@ -7,7 +7,7 @@ # Create the export list for perl. # Needed by AIX to do dynamic linking. # -# This simple program relies on 'global.sym' and few other *.sym files +# This simple program relies on global.sym and few other *.sym files # and the *var*.h files being up to date with all of the global # symbols that a dynamic link library might want to access. # @@ -49,20 +49,23 @@ rm -f perl.exp echo "#!" > perl.exp # No compat3 since 5.004_50. -# perlio.sym will added below if needed. -syms="global.sym interp.sym thread.sym" +# No interp.sym since 5.005_03. +# perlio.sym will added later if needed. + +syms="global.sym pp.sym" sed -n '/^[A-Za-z]/ s/^/Perl_/p' $syms >> perl.exp +sed -n '/^[A-Za-z]/ s/^/PL_/p' globvar.sym >> perl.exp sed -n 's/^PERLVAR.*(G\([^[,]*\).*/PL_\1/p' perlvars.h >> perl.exp sed -n 's/^PERLVAR.*(I\([^[,]*\).*/PL_\1/p' intrpvar.h >> perl.exp sed -n 's/^PERLVAR.*(T\([^[,]*\).*/PL_\1/p' thrdvar.h >> perl.exp # -# If we use the PerlIO abstraction layer, add its symbols +# If we use the PerlIO abstraction layer, add its symbols. # -if [ $useperlio = "define" ] +if [ "X$useperlio" = "Xdefine" ] then grep '^[A-Za-z]' perlio.sym >> perl.exp fi @@ -72,7 +75,7 @@ fi # not actually be defined, but there's no harm in that). # -cat <> perl.exp +cat >>perl.exp <>perl.exp <>perl.exp <