From 0c975caf0927edc7e82c3c475423291fb13df0f7 Mon Sep 17 00:00:00 2001 From: lazymio Date: Sun, 24 Apr 2022 00:10:12 +0200 Subject: [PATCH] Add -static-libgcc for mingw64-32 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92f5ee0a..7d1f1df3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,7 +119,7 @@ else() string(FIND "${UC_COMPILER_VERSION}" "i686" UC_RET) if(${UC_RET} GREATER_EQUAL "0") set(UNICORN_TARGET_ARCH "i386") - set(UNICORN_CFLAGS -m32) + set(UNICORN_CFLAGS -m32 -static-libgcc) # Workaround for github action bugs set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32") else()