Win32: Statically link libgcc and libstdc++

Else one needs to copy those files from mingw32.. and I see no reason
not to statically link them.
This commit is contained in:
Daniel Gibson 2012-09-05 21:45:03 +02:00
parent 4fc06760aa
commit a1f72df989

View file

@ -196,6 +196,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
endif() endif()
set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework IOKit") set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework IOKit")
elseif(WIN32)
set(ldflags "${ldflags} -static-libgcc -static-libstdc++")
else() else()
if(os STREQUAL "linux") if(os STREQUAL "linux")
set(sys_libs ${sys_libs} dl) set(sys_libs ${sys_libs} dl)