develooper Front page | perl.perl5.porters | Postings from June 2001

[PATCH 5.6.1] xsubpp flags from the command line

From:
Ilya Zakharevich
Date:
June 26, 2001 14:27
Subject:
[PATCH 5.6.1] xsubpp flags from the command line
Message ID:
20010626172707.A27097@math.ohio-state.edu
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
 ';
 }
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About