From 3470e095b8adba6fb310826460e1defc2ec7cd84 Mon Sep 17 00:00:00 2001 From: Stefan Hamminga Date: Wed, 19 Sep 2018 17:41:18 +0300 Subject: [PATCH] Fix build error when using Link-time optimization --- common/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index dadfad1ae..8c3ef4e7c 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -337,6 +337,7 @@ if( NOT HAVE_STRTOKR ) list( APPEND COMMON_SRCS strtok_r.c ) endif() +set_source_files_properties(system/libcontext.cpp PROPERTIES COMPILE_FLAGS "-fno-lto") set( COMMON_SRCS ${COMMON_SRCS} -- 2.19.0