diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-09-15 23:17:24 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 23:17:24 +0200 |
commit | 0e21944b97dfecc2633f6cdd0a0a7910939bfb3f (patch) | |
tree | 94ceba2b8e0a64e8b9109aa58ce12dd47c93a969 /CMakeLists.txt | |
parent | Give up on brace initializers in initializer lists (MSVC bug) (diff) | |
download | monero-0e21944b97dfecc2633f6cdd0a0a7910939bfb3f.tar.xz |
turns out we do need -static-libgcc etc. on Linux
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 190fcc5c5..593ef87d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,7 @@ else() set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}") if(STATIC AND NOT APPLE AND NOT FREEBSD) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") endif() endif() |