From: Sam S. <sd...@gn...> - 2008-09-26 14:08:41
|
Reini Urban wrote: > 2008/9/25 Reini Urban <ru...@x-...>: >> So it must be the linker pulling in the cygwin version for _errno(). > > The reason for this failure is > # **HACK**: utilities must run locally > UTILCC=cc > in Makefile. this is a cross-compiling hack. mingw sets UTILCC=gcc 2 lines above. > Linking a mingw32 gllib/malloc.o with the cygwin compiled utils does > not work. I thought we agreed that a file compiled for mingw is just an ordinary windows object and CAN be linked into a cygwin executable. <http://article.gmane.org/gmane.lisp.clisp.devel/19095> > And symlinks on a cygwin > host do work. So no need for that hack in a cygwin shell. the utilities compiled with UTILCC must be able to use the cygwin cynlinks transparently. if they are compiled with "gcc -mno-cygwin", they do not. > Fixing that to > UTILCC=gcc -mno-cygwin > or > UTILCC=$(CC) > works fine. even when building in a separate directory? |