[PATCH] setup: build enhancements

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Aug 11 02:37:00 GMT 2010


This patch for setup contains a few build-system enhancements:

* Bail out of configure if prereqs are missing.  I decided to check for
headers instead of libs to avoid possible stdcall issues with the
latter.  I'm not sure whether this will make such a difference with
"gcc-3 -mno-cygwin" (which IIUC is susceptible to find the native
versions' headers in /usr/include instead), but it will when proper
cross-compilers are out.

* Make doconfigure re-bootstrap if configure.in is newer than configure.
Otherwise once you configure, make will essentially autoreconf and run
configure a second time.

* Remove the special inilex.ll handling by solving the warning which
made it necessary.  Probably requires a new-ish flex.  If future
versions of flex or gcc don't get along with -Werror and can't be fixed
with flex %option's, an easier (and slightly faster) fix would be to
(similar to autoload.c handling):

inilex.o: CXXFLAGS += -Wno-unused-function

With the flex %option, inilex.o compiles with both gcc-mingw-3.4.4-999
and my mingw-gcc-4.5.1.


Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-build-enh.patch
Type: text/x-patch
Size: 3349 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20100811/e11ad188/attachment.bin>


More information about the Cygwin-apps mailing list