From 07c0252e84b4d474fac518127228e7a41e72403e Mon Sep 17 00:00:00 2001 From: dimecoin Date: Fri, 13 Jan 2017 13:18:47 -0600 Subject: [PATCH] Update static flags to fix seg fault -static will compile, but causes a segment fault on both build and target. Using the new flags compiles cleanly and runs on both build and target. (Build = debian sid [test], Target= debian jessie [stable]) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ce3c76..3ba2457 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ set(CMAKE_C_FLAGS "-DNDEBUG -march=westmere -O3 -m64 -s") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11") set(CMAKE_EXE_LINKER_FLAGS_RELSEASE "") -set(CMAKE_EXE_LINKER_FLAGS_STATIC "-static") +set(CMAKE_EXE_LINKER_FLAGS_STATIC "-static-libgcc -static-libstdc++") set(EXECUTABLE_OUTPUT_PATH "bin")