diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 11:52:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 11:52:03 +0400 |
commit | b5ce2b028a4f43c3e24caecfac337f85029ca575 (patch) | |
tree | e443f9d9b404bc2088025b5ba38a002f66b9e856 /CMakeLists.txt | |
parent | 890c97ca40024ae32edbc3c5af6db0ee257a942d (diff) |
link mingw libstdc++ and libgcc libs statically so users dont need mingw installed to use mingw builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 01d81eb7f00..f584ad29f8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 |