From 2111325e7b5a3bc1db2dc8e2a5925bf8e6b81051 Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:48:53 +0900 Subject: [PATCH 1/2] Build libslirp for mingw32 by our own --- .github/workflows/mingw32.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/mingw32.yml b/.github/workflows/mingw32.yml index b315be48e..fb19281a6 100644 --- a/.github/workflows/mingw32.yml +++ b/.github/workflows/mingw32.yml @@ -26,9 +26,8 @@ jobs: with: msystem: MINGW32 update: true - install: git make base-devel mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-ncurses mingw-w64-i686-binutils mingw-w64-i686-libslirp + install: git make base-devel mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-ncurses mingw-w64-i686-binutils - name: Install libslirp - if: false run: | # Run this job when MinGW drops 32-bit library support (Other libraries can be built as well) top=`pwd` From c0c506f2a529ab42dd94a75b4b0161a10850eb4f Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Tue, 7 Oct 2025 20:35:40 +0900 Subject: [PATCH 2/2] Build libslirp for mingw32 by our own (Windows Installer) --- .github/workflows/windows-installers.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-installers.yml b/.github/workflows/windows-installers.yml index 0fef7e96b..c520ac093 100644 --- a/.github/workflows/windows-installers.yml +++ b/.github/workflows/windows-installers.yml @@ -178,7 +178,7 @@ jobs: with: msystem: MINGW32 update: true - install: git mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-libslirp + install: git mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake - name: Update build info shell: bash run: | @@ -191,6 +191,19 @@ jobs: echo "#define GIT_COMMIT_HASH \"${shortsha}\"" >> include/build_timestamp.h echo "#define COPYRIGHT_END_YEAR \"${copyrightyear}\"" >> include/build_timestamp.h cat include/build_timestamp.h + - name: Install libslirp + run: | + # Run this job when MinGW drops 32-bit library support (Other libraries can be built as well) + top=`pwd` + mkdir pkg + cd pkg + git clone https://github.com/msys2/MINGW-packages.git + pwd + cd MINGW-packages + cd mingw-w64-libslirp + sed -i -e "s/^mingw_arch=\(.*\)/mingw_arch=(\'mingw32\')/" PKGBUILD + MINGW_ARCH=MINGW32 makepkg-mingw -sCLf --noconfirm + pacman --noconfirm -U mingw-w64-*-any.pkg.tar.zst - name: Build MinGW32 SDL1 run: | top=`pwd`