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
# 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")
add_dependencies(lwip bugcodes)
if(NOT MSVC)
allow_warnings(lwip)
+ if(LTCG)
+ add_compile_flags("-fno-builtin-malloc -fno-builtin-free")
+ endif()
endif()