diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-09-01 20:23:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-01 20:23:37 +0200 |
commit | 4a4e00ddcd44a8fc7a2c636f0959e74cd39cdd6e (patch) | |
tree | 808cfa359c06120be18df6c88fcf3c5a467ef115 | |
parent | abb06269a1ade49f71c02d1fc2b63128f872d294 (diff) | |
parent | 6635ded6ec16873e7bc8f4bd7c68d97ce91fd6f2 (diff) |
Merge pull request #511 from tokumeiwokiboushimasu/master
Fix build error on Fedora
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ebb69f..048dd44 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 "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>") + set(CMAKE_C_ARCHIVE_FINISH true) + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>") + set(CMAKE_CXX_ARCHIVE_FINISH true) endif() add_compile_options(-fno-pic) |