From 6635ded6ec16873e7bc8f4bd7c68d97ce91fd6f2 Mon Sep 17 00:00:00 2001 From: tokumeiwokiboushimasu Date: Wed, 28 Aug 2019 22:23:26 +0900 Subject: [PATCH] Fix build error on Fedora --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ebb69fe..048dd44a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,11 @@ endif() if(ENABLE_LTO) add_compile_options(-O3 -flto) + set(CMAKE_AR "gcc-ar") + set(CMAKE_C_ARCHIVE_CREATE " qcs ") + set(CMAKE_C_ARCHIVE_FINISH true) + set(CMAKE_CXX_ARCHIVE_CREATE " qcs ") + set(CMAKE_CXX_ARCHIVE_FINISH true) endif() add_compile_options(-fno-pic)