mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[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. svn path=/trunk/; revision=61266
This commit is contained in:
parent
e819fe007e
commit
952460b582
2 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue