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.

svn path=/trunk/; revision=61266
This commit is contained in:
Dmitry Gorbachev 2013-12-13 17:50:57 +00:00
parent e819fe007e
commit 952460b582
2 changed files with 4 additions and 1 deletions

View file

@ -92,7 +92,7 @@ endif()
# 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")

View file

@ -60,4 +60,7 @@ add_library(lwip ${SOURCE})
add_dependencies(lwip bugcodes)
if(NOT MSVC)
allow_warnings(lwip)
if(LTCG)
add_compile_flags("-fno-builtin-malloc -fno-builtin-free")
endif()
endif()