diff --git a/CMakeLists.txt b/CMakeLists.txt index f48fb80f0..75b8fe15e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,8 +233,8 @@ if(USE_LD_GOLD) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags") if(USE_LTO) - add_compile_options(-flto=thin) - add_link_options(-flto=thin) + add_compile_options(-flto) + add_link_options(-flto) message(STATUS "GNU gold linker enabled with LTO.") else() message(STATUS "GNU gold linker enabled.")