summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 14:34:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 14:34:31 +0100
commit298a04db37c2a9e652c6f762741fd2b3a9c9a139 (patch)
tree6744ae5244f7d25ca00fcdc8d7265c376bfdbb6f /CMakeLists.txt
parent1dd5531694205465a43232b1fa9aa3fa60b4982a (diff)
downloadrspamd-298a04db37c2a9e652c6f762741fd2b3a9c9a139.tar.gz
rspamd-298a04db37c2a9e652c6f762741fd2b3a9c9a139.zip
[Fix] Fix misprints for lto usage
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3df8a7bb..8a1acbb2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -797,18 +797,18 @@ IF(NOT CMAKE_C_OPT_FLAGS)
IF(SUPPORT_FLTO)
IF(NOT CMAKE_GCC_AR OR NOT CMAKE_GCC_RANLIB)
FIND_PROGRAM(CMAKE_GCC_AR NAMES "gcc-ar")
- FIND_PROGRAM(CMAKE_GCC_AR NAMES "gcc-ranlib")
+ FIND_PROGRAM(CMAKE_GCC_RANLIB NAMES "gcc-ranlib")
MARK_AS_ADVANCED(CMAKE_GCC_AR CMAKE_GCC_RANLIB)
ENDIF()
IF(CMAKE_GCC_AR AND CMAKE_GCC_RANLIB)
SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing -flto")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
SET(CMAKE_C_ARCHIVE_CREATE "${CMAKE_GCC_AR} cr <TARGET> <LINK_FLAGS> <OBJECTS>")
- SET(CMAKE_C_ARCHIVE_APPEND_IPO "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>")
- SET(CMAKE_C_ARCHIVE_FINISH_IPO "${CMAKE_GCC_RANLIB} <TARGET>")
+ SET(CMAKE_C_ARCHIVE_APPEND "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>")
+ SET(CMAKE_C_ARCHIVE_FINISH "${CMAKE_GCC_RANLIB} <TARGET>")
SET(CMAKE_CXX_ARCHIVE_CREATE "${CMAKE_GCC_AR} cr <TARGET> <LINK_FLAGS> <OBJECTS>")
- SET(CMAKE_CXX_ARCHIVE_APPEND_IPO "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>")
- SET(CMAKE_CXX_ARCHIVE_FINISH_IPO "${CMAKE_GCC_RANLIB} <TARGET>")
+ SET(CMAKE_CXX_ARCHIVE_APPEND "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>")
+ SET(CMAKE_CXX_ARCHIVE_FINISH "${CMAKE_GCC_RANLIB} <TARGET>")
ENDIF()
ELSE()
SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing")