Author: dgorbachev
Date: Wed Aug 6 23:10:17 2014
New Revision: 63824
URL:
http://svn.reactos.org/svn/reactos?rev=63824&view=rev
Log:
[EXPLORER]
Use -Wno-error option when building with link-time optimization.
[BROWSEUI]
"Fix" multiple definition of (non-virtual thunk to) QueryInterface errors.
Binutils linker bug.
Modified:
trunk/reactos/base/shell/explorer/CMakeLists.txt
trunk/reactos/dll/win32/browseui/CMakeLists.txt
Modified: trunk/reactos/base/shell/explorer/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/CMakeL…
==============================================================================
--- trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] Wed Aug 6 23:10:17
2014
@@ -63,4 +63,9 @@
if(NOT MSVC)
add_compile_flags("-Wno-error=narrowing")
+
+ # GCC bug #59472
+ if(LTCG)
+ add_target_link_flags(explorer "-Wno-error")
+ endif()
endif()
Modified: trunk/reactos/dll/win32/browseui/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/CMakeLi…
==============================================================================
--- trunk/reactos/dll/win32/browseui/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/CMakeLists.txt [iso-8859-1] Wed Aug 6 23:10:17 2014
@@ -61,4 +61,9 @@
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()