From 3bc91b780d1a19146650003e58189a0621af00fd Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 28 Mar 2018 19:42:21 +0700 Subject: [PATCH] Link libgcc and libstdc++ statically. --- iguana/exchanges/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/CMakeLists.txt b/iguana/exchanges/CMakeLists.txt index 55009012b..5ffccdfe6 100644 --- a/iguana/exchanges/CMakeLists.txt +++ b/iguana/exchanges/CMakeLists.txt @@ -26,5 +26,5 @@ add_definitions(-DIGUANA_MAXPACKETSIZE=1572864) add_definitions(-D_CRT_SECURE_NO_WARNINGS) include_directories("${CMAKE_SOURCE_DIR}/includes") endif() -target_link_libraries(marketmaker-testnet ${MM_LIBS} etomiclib-testnet) -target_link_libraries(marketmaker-mainnet ${MM_LIBS} etomiclib-mainnet) +target_link_libraries(marketmaker-testnet ${MM_LIBS} etomiclib-testnet -static-libgcc -static-libstdc++) +target_link_libraries(marketmaker-mainnet ${MM_LIBS} etomiclib-mainnet -static-libgcc -static-libstdc++)