The code to set the -W64 flag is inside a conditional block that only
executes when we are bundling DLLs with the installer. This results in
QEMU being installed in the wrong location on 64-bit hosts when DLLs
are not bundled.

Signed-off-by: Daniel P. Berrangé <[email protected]>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 14a463564e..97a6727358 100644
--- a/Makefile
+++ b/Makefile
@@ -893,11 +893,14 @@ INSTALLER = qemu-setup-$(VERSION)$(EXESUF)
 
 nsisflags = -V2 -NOCD
 
+ifeq ($(ARCH),x86_64)
+nsisflags += -DW64
+endif
+
 ifneq ($(wildcard $(SRC_PATH)/dll),)
 ifeq ($(ARCH),x86_64)
 # 64 bit executables
 DLL_PATH = $(SRC_PATH)/dll/w64
-nsisflags += -DW64
 else
 # 32 bit executables
 DLL_PATH = $(SRC_PATH)/dll/w32
-- 
2.20.1


Reply via email to