fixes to enable PERL_OBJECT build with mingw32/egcs-1.0.2
[p5sagit/p5-mst-13.2.git] / perl_exp.SH
index ab1866b..a874e5c 100644 (file)
@@ -38,14 +38,14 @@ echo "Extracting perl.exp"
 rm -f perl.exp
 echo "#!" > perl.exp
 
-# No compat3 since and including the 5.004_50.
-# perlio.sym added later if needed.
-syms=`ls -1 *.sym|egrep -v 'compat3|perlio'`
+# No compat3 since 5.004_50.
+# perlio.sym will added below if needed.
+syms="global.sym interp.sym thread.sym"
 
 sed -n '/^[A-Za-z]/ s/^/Perl_/p' $syms                  >> perl.exp
 
-sed -n 's/^PERLVAR.*(G\([^,[]*\).*/Perl_\1/p' perlvars.h >> perl.exp
-sed -n 's/^PERLVAR.*(T\([^,[]*\).*/Perl_\1/p' thrdvar.h  >> perl.exp
+sed -n 's/^PERLVAR.*(G\([^[,]*\).*/Perl_\1/p' perlvars.h >> perl.exp
+sed -n 's/^PERLVAR.*(T\([^[,]*\).*/Perl_\1/p' thrdvar.h  >> perl.exp
 
 # 
 # If we use the PerlIO abstraction layer, add its symbols