X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2FCMakeLists.txt;fp=src%2FCMakeLists.txt;h=dcd46a88a7c6f1515fb6eb476470e467d1fa9771;hp=74969fef23fe9b58109c9d4fe8ec86d2dc45500d;hb=c82941e32ea31e509d662ffd084ff4b5b3b9bfd3;hpb=6452e5d5ffef7de0134bd6885cba01ae13ecd3d7 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 74969fe..dcd46a8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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")