link mingw libstdc++ and libgcc libs statically so users dont need mingw installed...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 07:52:03 +0000 (07:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 07:52:03 +0000 (07:52 +0000)
CMakeLists.txt
build_files/scons/config/win32-mingw-config.py

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
index e4f8827b7c82fe63f9916226b723d2c4073589ee..8894432e417b3e7574333e1007154a52d59373fd 100644 (file)
@@ -190,6 +190,9 @@ LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32
 
 PLATFORM_LINKFLAGS = ['-Xlinker', '--stack=2097152']
 
+# for re-distrobution, so users dont need mingw installed
+PLATFORM_LINKFLAGS += ["-static-libgcc", "-static-libstdc++"]
+
 BF_DEBUG = False
 BF_DEBUG_CCFLAGS= ['-g', '-D_DEBUG']