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()