Просмотр исходного кода

removing dynamic dependency from libgcc

Stasik0 лет назад: 10
Родитель
Сommit
c5ef48fa5b
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Toolchain-mingw32.cmake

+ 3 - 0
Toolchain-mingw32.cmake

@@ -1,6 +1,9 @@
 # the name of the target operating system
 set(CMAKE_SYSTEM_NAME Windows)
 
+#remove the runtime dependency for libgcc_s_sjlj-1.dll
+set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc")
+
 # You can get a MinGW environment using the script at <http://mxe.cc>.
 # It downloads and builds MinGW and most of the dependencies for you.
 # You can use the toolchain file generated by MXE called `mxe-conf.cmake'