From ed83ebb3147ed2e261a709799e12d0eb43200bf3 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 20 Oct 2016 12:43:29 +0200 Subject: Shared secret key is now distributed to the other nodes. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f30c66e..f241abd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,14 @@ if(DOXYGEN_FOUND) ) endif(DOXYGEN_FOUND) +option(use_lto "Enable link time optimalisation" OFF) +if(use_lto) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto -fwhole-program") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto") +endif(use_lto) + add_subdirectory(libcmix-bignum) add_subdirectory(libcmix-crypto) add_subdirectory(libcmix) -- cgit v1.2.3-70-g09d2