Author: dgorbachev
Date: Fri Dec 13 17:50:57 2013
New Revision: 61266
URL:
http://svn.reactos.org/svn/reactos?rev=61266&view=rev
Log:
[CMAKE]
Use -ffat-lto-objects option for LTCG builds. GCC 4.9 now defaults
to slim LTO, which (owing to linker bug #13557) fails with undefined
reference errors.
[LWIP]
Compile with -fno-builtin-malloc -fno-builtin-free. GCC bug #56578.
Modified:
trunk/reactos/cmake/gcc.cmake
trunk/reactos/lib/drivers/lwip/CMakeLists.txt
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=61266&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Fri Dec 13 17:50:57 2013
@@ -92,7 +92,7 @@
# Link-time code generation
if(LTCG)
- add_compile_flags("-flto -Wno-error=clobbered")
+ add_compile_flags("-flto -ffat-lto-objects")
endif()
if(ARCH STREQUAL "i386")
Modified: trunk/reactos/lib/drivers/lwip/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/CMakeList…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/CMakeLists.txt [iso-8859-1] Fri Dec 13 17:50:57 2013
@@ -60,4 +60,7 @@
add_dependencies(lwip bugcodes)
if(NOT MSVC)
allow_warnings(lwip)
+ if(LTCG)
+ add_compile_flags("-fno-builtin-malloc -fno-builtin-free")
+ endif()
endif()