]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commit
Fix LTO support for cross-compilation.
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 26 Aug 2016 19:55:06 +0000 (21:55 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 27 Aug 2016 10:29:44 +0000 (12:29 +0200)
commit21113e024402057d878b4650ffba61b922552b86
tree40d9208c76b7bb8f76bf742db944dcb440a28580
parent86f3c44f768d6e49ad8cb2133e0ac3f6ed11baea
Fix LTO support for cross-compilation.

When cross-compiling, the ar and ranlib to be used for LTO are prefixed
by the cross-tuple. gcc-ar and gcc-ranlib may not exist. Cfr.
http://autobuild.buildroot.net/results/f3c/f3c48da3a9706cd366c0e0a96c3cd0ff959f2a78/

Therefore, search for an appropriate lto-ar and lto-ranlib before
enabling LTO.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
CMakeLists.txt