diff --git a/reactos/base/shell/explorer/CMakeLists.txt b/reactos/base/shell/explorer/CMakeLists.txt index e9ae80abe7b..abd294df4de 100644 --- a/reactos/base/shell/explorer/CMakeLists.txt +++ b/reactos/base/shell/explorer/CMakeLists.txt @@ -63,4 +63,9 @@ add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATI if(NOT MSVC) add_compile_flags("-Wno-error=narrowing") + + # GCC bug #59472 + if(LTCG) + add_target_link_flags(explorer "-Wno-error") + endif() endif() diff --git a/reactos/dll/win32/browseui/CMakeLists.txt b/reactos/dll/win32/browseui/CMakeLists.txt index 894ebda6413..e5f39bc01d3 100644 --- a/reactos/dll/win32/browseui/CMakeLists.txt +++ b/reactos/dll/win32/browseui/CMakeLists.txt @@ -61,4 +61,9 @@ add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all) if(NOT MSVC) add_target_compile_flags(browseui "-Wno-unused-but-set-variable") + + # Binutils linker bug + if(LTCG) + add_target_link_flags(browseui "-Wl,--allow-multiple-definition") + endif() endif()