Btw, I think I know the reason for perl Makefile.PL OPTIMIZE=-g not working for Tk (see my message on c.l.p.tk). See http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1997-07/msg01092.html (an excerpt follows). Hope this helps, Ilya ================================================================== I wondered for a lot of time why I never manage to compile extensions with debugging enabled if the main Perl library is optimized. Some time ago I understood that this is due to the following error in XS tutorial: --- ./pod/perlxstut.pod~ Sat Mar 29 15:37:28 1997 +++ ./pod/perlxstut.pod Sat Jul 26 01:06:38 1997 @@ -529,12 +529,12 @@ sub MY::postamble { ' $(MYEXTLIB): mylib/Makefile - cd mylib && $(MAKE) + cd mylib && $(MAKE) $(PASTHRU) '; }