Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[windows] also take the static version of libpthread.dll
[simgrid.git] / tools / cmake / GCCFlags.cmake
index 6b41adf..5883fc7 100644 (file)
@@ -174,6 +174,5 @@ endif()
 if(MINGW)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
-  set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static-libgcc -s")
-  set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static-libgcc -static-libstdc++ -s")
+  set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic -s")
 endif()