You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2015/05/17 00:39:19 UTC

thrift git commit: THRIFT-2850 CMake: mingw32-toolchain, set static linker flags

Repository: thrift
Updated Branches:
  refs/heads/master 880a2b32e -> e46ec45b3


THRIFT-2850 CMake: mingw32-toolchain, set static linker flags

fixes: libgcc_s dependencies on Windows

Now we have an installer and the compiler as executable


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/e46ec45b
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/e46ec45b
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/e46ec45b

Branch: refs/heads/master
Commit: e46ec45b38f2ba9062f9bcf1709708f8bdab1809
Parents: 880a2b3
Author: Roger Meier <ro...@apache.org>
Authored: Sun May 17 00:35:52 2015 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Sun May 17 00:35:52 2015 +0200

----------------------------------------------------------------------
 build/cmake/mingw32-toolchain.cmake | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/e46ec45b/build/cmake/mingw32-toolchain.cmake
----------------------------------------------------------------------
diff --git a/build/cmake/mingw32-toolchain.cmake b/build/cmake/mingw32-toolchain.cmake
index 0fc1efa..864c0eb 100644
--- a/build/cmake/mingw32-toolchain.cmake
+++ b/build/cmake/mingw32-toolchain.cmake
@@ -17,3 +17,8 @@ SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+
+set(BUILD_SHARED_LIBS OFF)
+SET(CMAKE_EXE_LINKER_FLAGS "-static")
+set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-static-libgcc")
+set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-static-libstdc++")