link mingw libstdc++ and libgcc libs statically so users dont need mingw installed to use mingw builds
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user