Skip to content

Commit 7ed61eb

Browse files
authored
fix Windows DLL linking problems by statically linking mingw libs (#109)
1 parent f23beec commit 7ed61eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ target_link_libraries(_PyPartMC PRIVATE partmclib)
137137
if (APPLE)
138138
target_link_options(_PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind)
139139
endif()
140+
if (WIN32)
141+
target_link_libraries(_PyPartMC PRIVATE -static gcc stdc++ winpthread quadmath -dynamic)
142+
endif()
140143

141144
### pedantics ######################################################################################
142145

0 commit comments

Comments
 (0)