link mingw libstdc++ and libgcc libs statically so users dont need mingw installed to use mingw builds

This commit is contained in:
Campbell Barton
2012-01-05 07:52:03 +00:00
parent 890c97ca40
commit b5ce2b028a
2 changed files with 7 additions and 1 deletions

View 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