Skip to contentSkip to conversation

configure: remove Cygwin

PATCH Applied Paolo Bonzini 3 participants 4 messages Mar 17, 2017 – Mar 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configure: remove Cygwin

The Cygwin target is really compiling for native Win32 with -mno-cygwin. Except, GCC 4.7.0 has finally removed the long deprecated -mno-cygwin option, and that happened about five years ago.

Let it rest in peace.

---
 bsd-user/mmap.c | 5 -----
 configure       | 6 ------
 2 files changed, 11 deletions(-)
bsd-user/mmap.c +0 -5
index ee59073..1ad018a 100644
@@ -199,12 +199,7 @@ static int mmap_frag(abi_ulong real_start,
     return 0;
 }
 
-#if defined(__CYGWIN__)
-/* Cygwin doesn't have a whole lot of address space.  */
-static abi_ulong mmap_next_start = 0x18000000;
-#else
 static abi_ulong mmap_next_start = 0x40000000;
-#endif
 
 unsigned long last_brk;
 
configure +0 -6
index 99d8bec..b9a30cf 100755
@@ -553,12 +553,6 @@ fi
 HOST_VARIANT_DIR=""
 
 case $targetos in
-CYGWIN*)
-  mingw32="yes"
-  QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS"
-  audio_possible_drivers="sdl"
-  audio_drv_list="sdl"
-;;
 MINGW32*)
   mingw32="yes"
   hax="yes"
Signature · 1 line
2.9.3
Reviewed-by on v2 1/1
#1 lore raw

Am 17.03.2017 um 17:08 schrieb Paolo Bonzini:

Quoted 8 lines

The Cygwin target is really compiling for native Win32 with -mno-cygwin. Except, GCC 4.7.0 has finally removed the long deprecated -mno-cygwin option, and that happened about five years ago.

Let it rest in peace.

---

CC'ing qemu-trivial for the pull request.

I only wonder whether we should raise an error if people try building QEMU with native Cygwin (not Cygwin / Mingw-w64).

Stefan

Quoted 39 lines
 bsd-user/mmap.c | 5 -----
 configure       | 6 ------
 2 files changed, 11 deletions(-)
bsd-user/mmap.c +0 -5
index ee59073..1ad018a 100644
@@ -199,12 +199,7 @@ static int mmap_frag(abi_ulong real_start,
     return 0;
 }
 
-#if defined(__CYGWIN__)
-/* Cygwin doesn't have a whole lot of address space.  */
-static abi_ulong mmap_next_start = 0x18000000;
-#else
 static abi_ulong mmap_next_start = 0x40000000;
-#endif
 
 unsigned long last_brk;
 
configure +0 -6
index 99d8bec..b9a30cf 100755
@@ -553,12 +553,6 @@ fi
 HOST_VARIANT_DIR=""
 
 case $targetos in
-CYGWIN*)
-  mingw32="yes"
-  QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS"
-  audio_possible_drivers="sdl"
-  audio_drv_list="sdl"
-;;
 MINGW32*)
   mingw32="yes"
   hax="yes"
#2 lore raw
Quoted 12 lines · Stefan Weil

Am 17.03.2017 um 17:08 schrieb Paolo Bonzini:

Quoted 9 lines

The Cygwin target is really compiling for native Win32 with -mno-cygwin. Except, GCC 4.7.0 has finally removed the long deprecated -mno-cygwin option, and that happened about five years ago.

Let it rest in peace.

---

Quoted 6 lines

CC'ing qemu-trivial for the pull request.

I only wonder whether we should raise an error if people try building QEMU with native Cygwin (not Cygwin / Mingw-w64).

I think the "warn about deprecated hosts" patch that I posted earlier today will effectively end up doing that, because it changes the case $targetos from "default to assuming Linux" to "explicitly check for Linux, and default to an error message".

thanks
-- PMM

#3 lore raw
In reply to Paolo Bonzini
Quoted 4 lines · Paolo Bonzini

The Cygwin target is really compiling for native Win32 with -mno-cygwin. Except, GCC 4.7.0 has finally removed the long deprecated -mno-cygwin option, and that happened about five years ago.

Quoted 8 lines

Let it rest in peace.

---
 bsd-user/mmap.c | 5 -----
 configure       | 6 ------
 2 files changed, 11 deletions(-)

Applied to master, thanks.

-- PMM