# HG changeset patch # User Eli Zaretskii # Date 983805557 0 # Node ID aaea0580662ba3ca31284f3923c7a8935918c337 # Parent ea96fad2da674699e4a7d5df9ec8233a51dcd006 Use correct options when compiling a test program with Cygwin. From David Ponce . diff -r ea96fad2da67 -r aaea0580662b nt/configure.bat --- a/nt/configure.bat Mon Mar 05 15:13:46 2001 +0000 +++ b/nt/configure.bat Mon Mar 05 15:19:17 2001 +0000 @@ -202,7 +202,16 @@ echo #include "windows.h" >junk.c echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c -gcc -c junk.c +if (%nocygwin%) == (Y) goto checkw32api1 +set cf=%usercflags% +goto checkw32api2 +:checkw32api1 +set cf=%usercflags% -mno-cygwin +:checkw32api2 +echo on +gcc %cf% -c junk.c +echo off +set cf= if exist junk.o goto gccOk :nocompiler