41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
|
|
From c66c944a2caf4a457d542c843e5215bd7d673887 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Thu, 26 Sep 2024 10:28:30 +0800
|
||
|
|
Subject: [PATCH] configure: Symlink binaries using .exe suffix with MinGW
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cherry picked from commit 57a93f16e8dad554720edcc5ed1fe613d68bf230
|
||
|
|
|
||
|
|
When using the MinGW toolchain, we use the .exe suffix for the
|
||
|
|
executable name. We also need to use it for the symlinks in the
|
||
|
|
build directory.
|
||
|
|
|
||
|
|
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
||
|
|
Reviewed-by: Stefan Weil <sw@weilnetz.de>
|
||
|
|
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
|
Message-Id: <20211109144504.1541206-1-philmd@redhat.com>
|
||
|
|
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
|
||
|
|
Signed-off-by: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
configure | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/configure b/configure
|
||
|
|
index 991fe67886..7d508b2e72 100755
|
||
|
|
--- a/configure
|
||
|
|
+++ b/configure
|
||
|
|
@@ -3685,7 +3685,7 @@ fi
|
||
|
|
|
||
|
|
for target in $target_list; do
|
||
|
|
target_dir="$target"
|
||
|
|
- target_name=$(echo $target | cut -d '-' -f 1)
|
||
|
|
+ target_name=$(echo $target | cut -d '-' -f 1)$EXESUF
|
||
|
|
mkdir -p "$target_dir"
|
||
|
|
case $target in
|
||
|
|
*-user) symlink "../qemu-$target_name" "$target_dir/qemu-$target_name" ;;
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|