Hi Christian,

2013/02/21 Thu 5:33:45 UTC+9 Heptite wrote:

> This led me to realizing that the rule for generating if_perl.c is
> broken when trying to build with Cygwin's mingw installation.  The
> problem is that it leaves behind a zero length if_perl.c which is then
> assumed to be valid on later attempts to build, which is why I was
> getting the errors I originally posted.
> 
> I had to change the if_perl.c rule in Make_ming.mak to the following
> to get a clean build:
> 
> if_perl.c: if_perl.xs typemap
>       $(XSUBPP) -prototypes -typemap \
>            `cygpath -w $(PERLLIB)/ExtUtils/typemap` if_perl.xs > $@
> 
> As you can see, cygwin likes Unix paths, but this is calling a native
> Windows Perl installation's xsubpp, which expects a native Windows
> pathname to typemap, so it has to be converted.
> 
> This is not an optimal solution; I think there needs to be some kind
> of logic to allow people using Cygwin's mingw plus a native Windows
> Perl installation.

There are some solutions for this problem:

1. Use Make_cyg.mak instead of Make_ming.mak and use Unix-style paths:

  $ make -f Make_cyg.mak PERL=/cygdrive/c/strawberry/perl

2. Use Make_ming.mak and use Windows-like paths:

  $ make -f Make_ming.mak PERL=c:/strawberry/perl


> I also had to tweak GvimExt/Make_ming.mak to change CXX from
> $(CROSS_COMPILE)g++-3  to  $(CROSS_COMPILE)g++, in case anybody else
> is having troulble getting GvimExt to compile with a build environment
> similar to mine.

I think 'CXX=$(CROSS_COMPILE)g++' is the default.


BTW, Make_cyg.mak and Make_ming.mak do the almost same thing.
(Make_cyg.mak has a option 'USEDLL' which Make_ming.mak doesn't have,
but USEDLL=yes doesn't seem to work anymore.)
I'm wondering that Make_cyg.mak can be merged into Make_ming.mak.
It's hard to maintain the two almost same files.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui