Update CMakeLists.txt
authorsvost <svost@users.noreply.github.com>
Sun, 14 Jan 2024 17:58:10 +0000 (20:58 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Jan 2024 17:58:10 +0000 (20:58 +0300)
src/CMakeLists.txt

index 74969fe..dcd46a8 100644 (file)
@@ -29,7 +29,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")