Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Use GCC version of 'ranlib'
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Feb 23, 2017
1 parent f55a935 commit bffb365
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions flags/lto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,15 @@ else()
""
FORCE
)
# TODO: alternative 'set(CMAKE_AR "${CMAKE_AR} --plugin=/.../liblto_plugin.so")'?

if(EXISTS "/bin/true")
set(_true_exe "/bin/true")
elseif(EXISTS "/usr/bin/true")
set(_true_exe "/usr/bin/true")
else()
polly_fatal_error("'true' executable not found")
endif()

set(CMAKE_RANLIB "${_true_exe}" CACHE PATH "" FORCE)
set(
CMAKE_RANLIB
"${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.9/prebuilt/${_host_tag}-x86_64/bin/arm-linux-androideabi-gcc-ranlib"
CACHE
PATH
""
FORCE
)
# }


Expand Down

0 comments on commit bffb365

Please sign in to comment.