On Tue, Jul 29, 2003 at 12:45:48AM +0200, Stas Bekman wrote:
> Is it possible that xsubpp in 5.8.0 was automatically picking the 
> installation-wide typemap and now it doesn't? Notice that the solution I 
> have used is to add: -typemap path/to/lib/5.8.1/ExtUtils/typemap

No idea.  This bit of logic looks extremely dodgey...

unshift @tm, qw(../../../../lib/ExtUtils/typemap ../../../lib/ExtUtils/typemap
                ../../lib/ExtUtils/typemap ../../../typemap ../../typemap
                ../typemap typemap);

but that's been in there for a long time.

I know that MakeMaker always calls xsubpp with -typemap.

~/devel/Text-Metaphone $ grep -1 -i 'xsubpp' Makefile

# --- MakeMaker tool_xsubpp section:

XSUBPPDIR = /System/Library/Perl/ExtUtils
XSUBPP = $(XSUBPPDIR)/xsubpp
XSPROTOARG = 
XSUBPPDEPS = /System/Library/Perl/ExtUtils/typemap typemap $(XSUBPP)
XSUBPPARGS = -typemap /System/Library/Perl/ExtUtils/typemap -typemap typemap
XSUBPP_EXTRA_ARGS = 

--
.xs.c:
        $(PERLRUN) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $(XSUBPP_EXTRA_ARGS) $*.xs > 
$*.xsc && $(MV) $*.xsc $*.c

--
.xs$(OBJ_EXT):
        $(PERLRUN) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.xsc && $(MV) 
$*.xsc $*.c
        $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c
--

Metaphone.c : $(XSUBPPDEPS)

~/devel/Text-Metaphone $ make -n .xs.c
/usr/bin/perl /System/Library/Perl/ExtUtils/xsubpp  -typemap 
/System/Library/Perl/ExtUtils/typemap -typemap typemap  .xs.xs > .xs.xsc && mv .xs.xsc 
.xs.c


-- 
Playstation?  Of course Perl runs on Playstation.
    -- Jarkko Hietaniemi

Reply via email to