author | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | |
Fri, 26 Aug 2016 19:55:06 +0000 (21:55 +0200) | ||
committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | |
Sat, 27 Aug 2016 10:29:44 +0000 (12:29 +0200) | ||
commit | 21113e024402057d878b4650ffba61b922552b86 | |
tree | 40d9208c76b7bb8f76bf742db944dcb440a28580 | tree | snapshot (tar.xz tar.gz zip) |
parent | 86f3c44f768d6e49ad8cb2133e0ac3f6ed11baea | commit | diff |
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>
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 | diff | blob | history |