This patch allows specification of extra arguments for xsubpp from the make command line. Rationale: on OS/2 the OMF object format does not (?) allow for source-file-name-per-line information, thus `#line' directives from a different file only confuse the debugger. Now one can debug an extension (with non-debugging perl) via make OPTIMIZE=-g XSUBPP_EXTRA_ARGS=-nolinenumber Enjoy, Ilya --- ./lib/ExtUtils/MM_Unix.pm-pre-xsubpp Tue Jun 26 10:51:36 2001 +++ ./lib/ExtUtils/MM_Unix.pm Tue Jun 26 11:19:22 2001 @@ -3612,6 +3612,7 @@ XSUBPP = \$(XSUBPPDIR)/$xsubpp XSPROTOARG = $self->{XSPROTOARG} XSUBPPDEPS = @tmdeps \$(XSUBPP) XSUBPPARGS = @tmargs +XSUBPP_EXTRA_ARGS = }; }; @@ -3790,7 +3791,7 @@ sub xs_c { return '' unless $self->needs_linking(); ' .xs.c: - $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.xsc && $(MV) $*.xsc $*.c + $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $(XSUBPP_EXTRA_ARGS) $*.xs > $*.xsc && $(MV) $*.xsc $*.c '; }