mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 02:27:37 -07:00
Attempt to fix broken compilation on some systems caused by #1074
This commit is contained in:
parent
0fde289e2f
commit
1855213c8f
@ -502,12 +502,15 @@ else()
|
||||
# -DCHOST=... or -DCMAKE_AR=... and -DCMAKE_RANLIB=...
|
||||
if (DEFINED CHOST)
|
||||
set(CHOST_PREFIX "${CHOST}-")
|
||||
endif()
|
||||
if (NOT DEFINED CMAKE_AR)
|
||||
set(CMAKE_AR "${CHOST_PREFIX}gcc-ar")
|
||||
endif()
|
||||
if (NOT DEFINED CMAKE_RANLIB)
|
||||
set(CMAKE_RANLIB "${CHOST_PREFIX}gcc-ranlib")
|
||||
if (NOT DEFINED CMAKE_AR)
|
||||
set(CMAKE_AR "${CHOST_PREFIX}gcc-ar")
|
||||
endif()
|
||||
if (NOT DEFINED CMAKE_RANLIB)
|
||||
set(CMAKE_RANLIB "${CHOST_PREFIX}gcc-ranlib")
|
||||
endif()
|
||||
else()
|
||||
set(CMAKE_AR "gcc-ar")
|
||||
set(CMAKE_RANLIB "gcc-ranlib")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user