diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-03-05 15:19:17 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-03-05 15:19:17 +0000 |
commit | 4a58b1ca043faf91f8f33b08558771fb45d42a13 (patch) | |
tree | 279523764c9629b1b93be1e602a68a3c0e913031 /nt | |
parent | 68695a67be915b2ac73a1b1c7356d72bbe8cde2f (diff) | |
download | emacs-4a58b1ca043faf91f8f33b08558771fb45d42a13.tar.gz |
Use correct options when compiling a test program with Cygwin.
From David Ponce <dponce@voila.fr>.
Diffstat (limited to 'nt')
-rwxr-xr-x | nt/configure.bat | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nt/configure.bat b/nt/configure.bat index 4fd8ea549bd..5ef56136469 100755 --- a/nt/configure.bat +++ b/nt/configure.bat @@ -202,7 +202,16 @@ echo Checking whether W32 API headers are too old... 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
|