mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 09:24:47 +00:00
Gcc 4.9 LTO fix
The new lto format requires use of the gcc-provided gcc-ar and gcc-ranlib binaries.
This commit is contained in:
parent
feac5a7b2d
commit
c8626dff3f
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ else()
|
||||||
else()
|
else()
|
||||||
set(WARNINGS "${WARNINGS} -Wlogical-op -Wno-error=maybe-uninitialized")
|
set(WARNINGS "${WARNINGS} -Wlogical-op -Wno-error=maybe-uninitialized")
|
||||||
endif()
|
endif()
|
||||||
|
# Since gcc 4.9 the LTO format is non-standard (slim), so we need the gcc-specific ar and ranlib binaries
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0))
|
||||||
|
set(CMAKE_AR "gcc-ar")
|
||||||
|
set(CMAKE_RANLIB "gcc-ranlib")
|
||||||
|
endif()
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
set(WARNINGS "${WARNINGS} -Wno-error=unused-value")
|
set(WARNINGS "${WARNINGS} -Wno-error=unused-value")
|
||||||
set(MINGW_FLAG "-DWIN32_LEAN_AND_MEAN")
|
set(MINGW_FLAG "-DWIN32_LEAN_AND_MEAN")
|
||||||
|
|
Loading…
Reference in a new issue