[EXPLORER]
authorDmitry Gorbachev <gorbachev@reactos.org>
Wed, 6 Aug 2014 23:10:17 +0000 (23:10 +0000)
committerDmitry Gorbachev <gorbachev@reactos.org>
Wed, 6 Aug 2014 23:10:17 +0000 (23:10 +0000)
Use -Wno-error option when building with link-time optimization.

[BROWSEUI]
"Fix" multiple definition of (non-virtual thunk to) QueryInterface errors.
Binutils linker bug.

svn path=/trunk/; revision=63824

reactos/base/shell/explorer/CMakeLists.txt
reactos/dll/win32/browseui/CMakeLists.txt

index e9ae80a..abd294d 100644 (file)
@@ -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()
index 894ebda..e5f39bc 100644 (file)
@@ -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()