Win32: Disable dynamic libgcc for MinGW DLL

(cherry picked from commit 3ec8f4a7f5)
This commit is contained in:
Camilla Löwy 2019-10-03 19:49:25 +02:00
Родитель 613b169899
Коммит e30718e927
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -125,6 +125,10 @@ target_compile_options(glfw PRIVATE
if (BUILD_SHARED_LIBS)
if (WIN32)
if (MINGW)
# Remove the dependency on the shared version of libgcc
# NOTE: MinGW-w64 has the correct default but MinGW needs this
target_link_options(glfw PRIVATE "-static-libgcc")
# Remove the lib prefix on the DLL (but not the import library)
set_target_properties(glfw PROPERTIES PREFIX "")