Update CMakeLists.txt
authorsvost <svost@users.noreply.github.com>
Sun, 21 Jan 2024 21:33:17 +0000 (00:33 +0300)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 21:33:17 +0000 (00:33 +0300)
CMakeLists.txt

index 036024d..6631b60 100644 (file)
@@ -43,7 +43,7 @@ if (NOT MSVC)
 if (NOT WIN32)
 set(FPIC "-fPIC")
 endif()
-set (CMAKE_C_FLAGS "-flto -O3 ${FPIC} -Wno-deprecated -fstack-protector-all")
+set (CMAKE_C_FLAGS "-flto=auto -O3 ${FPIC} -Wno-deprecated -Wno-deprecated-declarations -fstack-protector-all")
 set (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter -fexceptions -frtti")
 else()
 set(CMAKE_C_FLAGS "/O2")