link mingw libstdc++ and libgcc libs statically so users dont need mingw installed...
[blender.git] / CMakeLists.txt
index 01d81eb7f00975f31e3f6ed3a4d37425a299c90e..f584ad29f8c05c8e46081433d11f4269fe143d3c 100644 (file)
@@ -1026,9 +1026,12 @@ elseif(WIN32)
                        set(OPENIMAGEIO_LIBPATH ${OPENIMAGEIO}/lib)
                        set(OPENIMAGEIO_DEFINITIONS)
                endif()
-
+               
                set(PLATFORM_LINKFLAGS "-Xlinker --stack=2097152")
 
+               # for re-distrobution, so users dont need mingw installed
+               set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -static-libgcc -static-libstdc++")
+
        endif()
 
        # used in many places so include globally, like OpenGL