Mercurial > emacs
diff nt/configure.bat @ 36545:aaea0580662b
Use correct options when compiling a test program with Cygwin.
From David Ponce <dponce@voila.fr>.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 05 Mar 2001 15:19:17 +0000 |
parents | 8045cccd8f3c |
children | baaa260e9a27 |
line wrap: on
line diff
--- 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