mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
Merge pull request #1081
aa9a645
cmake: remove redundant checks around CMAKE_{AR,RANLIB} (redfish)
This commit is contained in:
commit
2846d0850d
@ -497,17 +497,11 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
# Since gcc 4.9 the LTO format is non-standard (slim), so we need the gcc-specific ar and ranlib binaries
|
# 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) AND NOT OPENBSD)
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0) AND NOT OPENBSD)
|
||||||
# When invoking cmake on distributions on which gcc's binaries are prefix
|
# When invoking cmake on distributions on which gcc's binaries are prefixed
|
||||||
# with an arch-specific triplet, the user has to either specify
|
# with an arch-specific triplet, the user must specify -DCHOST=<prefix>
|
||||||
# -DCHOST=... or -DCMAKE_AR=... and -DCMAKE_RANLIB=...
|
|
||||||
if (DEFINED CHOST)
|
if (DEFINED CHOST)
|
||||||
set(CHOST_PREFIX "${CHOST}-")
|
set(CMAKE_AR "${CHOST}-gcc-ar")
|
||||||
if (NOT DEFINED CMAKE_AR)
|
set(CMAKE_RANLIB "${CHOST}-gcc-ranlib")
|
||||||
set(CMAKE_AR "${CHOST_PREFIX}gcc-ar")
|
|
||||||
endif()
|
|
||||||
if (NOT DEFINED CMAKE_RANLIB)
|
|
||||||
set(CMAKE_RANLIB "${CHOST_PREFIX}gcc-ranlib")
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
set(CMAKE_AR "gcc-ar")
|
set(CMAKE_AR "gcc-ar")
|
||||||
set(CMAKE_RANLIB "gcc-ranlib")
|
set(CMAKE_RANLIB "gcc-ranlib")
|
||||||
|
Loading…
Reference in New Issue
Block a user