Skip to contentSkip to conversation

Fix build of console and GUI executables for Windows

PATCH Applied Stefan Weil 2 participants 4 messages Nov 16, 2017 – Nov 23, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build of console and GUI executables for Windows

It was broken by commit 8ecc89f6e792152496eccb684d6c8c48aba8027d which moved the SDL linker flags from macro libs_softmmu to macro SDL_LIBS.

---

Peter, can you apply this fix directly, or do you need a pull request?

Regards
Stefan

 Makefile.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.target +1 -1
index e4244c188a..f9a9da7e7c 100644
@@ -22,7 +22,7 @@ QEMU_PROG_BUILD = $(QEMU_PROG)
 else
 # system emulator name
 QEMU_PROG=qemu-system-$(TARGET_NAME)$(EXESUF)
-ifneq (,$(findstring -mwindows,$(libs_softmmu)))
+ifneq (,$(findstring -mwindows,$(SDL_LIBS)))
 # Terminate program name with a 'w' because the linker builds a windows executable.
 QEMU_PROGW=qemu-system-$(TARGET_NAME)w$(EXESUF)
 $(QEMU_PROG): $(QEMU_PROGW)
Signature · 1 line
2.11.0
#1 lore raw

Am 16.11.2017 um 17:37 schrieb Stefan Weil:

Quoted 19 lines

It was broken by commit 8ecc89f6e792152496eccb684d6c8c48aba8027d which moved the SDL linker flags from macro libs_softmmu to macro SDL_LIBS.

---

Peter, can you apply this fix directly, or do you need a pull request?

Regards
Stefan

 Makefile.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.target +0 -0
index e4244c188a..f9a9da7e7c 100644

Makefile.target QEMU_PROG_BUILD = $(QEMU_PROG) · line 28

Quoted 8 lines
Makefile.target +1 -1
@@ -22,7 +22,7 @@ QEMU_PROG_BUILD = $(QEMU_PROG)
 else
 # system emulator name
 QEMU_PROG=qemu-system-$(TARGET_NAME)$(EXESUF)
-ifneq (,$(findstring -mwindows,$(libs_softmmu)))
+ifneq (,$(findstring -mwindows,$(SDL_LIBS)))
 # Terminate program name with a 'w' because the linker builds a windows executable.
 QEMU_PROGW=qemu-system-$(TARGET_NAME)w$(EXESUF)
 $(QEMU_PROG): $(QEMU_PROGW)

The fix missed v2.11.0-rc2. Can it be applied before v2.11.0-rc3?

Thanks, Stefan

#2 lore raw
Quoted 15 lines · Stefan Weil

Am 16.11.2017 um 17:37 schrieb Stefan Weil:

Quoted 14 lines

It was broken by commit 8ecc89f6e792152496eccb684d6c8c48aba8027d which moved the SDL linker flags from macro libs_softmmu to macro SDL_LIBS.

---

Peter, can you apply this fix directly, or do you need a pull request?

Regards
Stefan

 Makefile.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines

Makefile.target QEMU_PROG_BUILD = $(QEMU_PROG) · line 28

Quoted 13 lines
Makefile.target +1 -1
index e4244c188a..f9a9da7e7c 100644
@@ -22,7 +22,7 @@ QEMU_PROG_BUILD = $(QEMU_PROG)
 else
 # system emulator name
 QEMU_PROG=qemu-system-$(TARGET_NAME)$(EXESUF)
-ifneq (,$(findstring -mwindows,$(libs_softmmu)))
+ifneq (,$(findstring -mwindows,$(SDL_LIBS)))
 # Terminate program name with a 'w' because the linker builds a windows executable.
 QEMU_PROGW=qemu-system-$(TARGET_NAME)w$(EXESUF)
 $(QEMU_PROG): $(QEMU_PROGW)

The fix missed v2.11.0-rc2. Can it be applied before v2.11.0-rc3?

Sure, I've put it on my list. In general though, just cc'ing me on patches is not guaranteed to get my attention, as I more or less ignore whether I'm cc'd or not as I scan subject lines. Sending a pull request is the best way to guarantee getting something to my attention to be applied; pull requests are the mechanism for allowing me to ignore patches related to all the parts of QEMU I don't care about, by delegating them to somebody else :-)

thanks
-- PMM

#3 lore raw
In reply to Stefan Weil
Quoted 28 lines · Stefan Weil

It was broken by commit 8ecc89f6e792152496eccb684d6c8c48aba8027d which moved the SDL linker flags from macro libs_softmmu to macro SDL_LIBS.

---

Peter, can you apply this fix directly, or do you need a pull request?

Regards
Stefan

 Makefile.target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.target +1 -2
index e4244c188a..f9a9da7e7c 100644
@@ -22,7 +22,7 @@ QEMU_PROG_BUILD = $(QEMU_PROG)
 else
 # system emulator name
 QEMU_PROG=qemu-system-$(TARGET_NAME)$(EXESUF)
-ifneq (,$(findstring -mwindows,$(libs_softmmu)))
+ifneq (,$(findstring -mwindows,$(SDL_LIBS)))
 # Terminate program name with a 'w' because the linker builds a windows executable.
 QEMU_PROGW=qemu-system-$(TARGET_NAME)w$(EXESUF)
 $(QEMU_PROG): $(QEMU_PROGW)
--
Quoted 1 line

2.11.0

Applied, thanks.

-- PMM