Hi,

2017/2/15 Wed 11:05:21 UTC+9 Steve Hall wrote:
> On Tue, Feb 14, 2017 at 6:56 PM, Ken Takata <[email protected]> wrote:
> > 2017/2/15 Wed 5:43:08 UTC+9 Steve Hall wrote:
> > >
> > > I'm setting the environment elsewhere now. So the only other thing in
> > > Make_cyg is UNDER_CYGWIN = yes. Not sure what that does, is it
> > > important?
> > 
> > It is used for setting the default name of windres command, and also used 
> > for
> > converting Cygwin style paths and Windows style paths where needed.
> > Without setting it, wrong version of windres might be used and causes link
> > error. Also compiling with if_perl and if_mzsch might fail.
> 
> 
> Thanks for the continued diagnosis. I've confirmed this to be true
> for if_perl.
> 
> 
> But Make_cyg.mak is still broken for with the same errors. It
> doesn't matter if I force either CROSS_COMPILE or ARCH:
> 
> 
> set CROSS_COMPILE=x86_64-w64-mingw32-
> set ARCH=x86-64
> 
> 
> Interestingly, without ARCH forced, make -f shows
> 
> 
> i686-pc-mingw32-gcc -c -Iproto -DWIN32 -DWINVER=0x0501

This shows that the setting of CROSS_COMPILE is not overwritten.
I think that setting a variable in a makefile has a higher priority than
setting in an environment variable.  And setting a variable in a command
line has a higher priority than setting in a makefile.  Therefore, this
works as expected:

  make -f Make_cyg.mak CROSS_COMPILE=x86_64-w64-mingw32-


> I'm over my head trying to find where _UI64_MAX is being passed, that
> doesn't show up anywhere in the source that I can grep.

You can find the definition of _UI64_MAX in limits.h.  E.g.:

  For x86: C:\cygwin64\usr\i686-w64-mingw32\sys-root\mingw\include\limits.h
  For x64: C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\include\limits.h

i686-pc-mingw32-gcc's limits.h might not have the definition, because it is old.


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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui