<div dir="ltr">Generally ok,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 12:09 AM, Peter Kovář <span dir="ltr"><<a href="mailto:peter.kovar@reflexion.tv" target="_blank">peter.kovar@reflexion.tv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Peter Kovář <<a href="mailto:peter.kovar@reflexion.tv" target="_blank">peter.kovar@reflexion.tv</a>><br>
# Date 1435170971 -7200<br>
# Wed Jun 24 20:36:11 2015 +0200<br>
# Node ID 9e80570db6045a234041a072d56721b9ab9b1296<br>
# Parent 3a5cd130f9084147168c02f26de102faf59d193b<br>
[RFC] LTO<br>
<br>
Link time optimization.<br>
<br>
diff -r 3a5cd130f908 -r 9e80570db604 source/CMakeLists.txt<br>
--- a/source/CMakeLists.txt Mon Jun 22 17:39:54 2015 -0700<br>
+++ b/source/CMakeLists.txt Wed Jun 24 20:36:11 2015 +0200<br>
@@ -458,6 +458,13 @@<br>
endif()<br>
endif()<br>
<br>
+option(ENABLE_LTO "Enable link time optimization" OFF)<br>
+if(ENABLE_LTO)<br>
+ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")<br></blockquote><div><br>This should be under the large if(GCC) block.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ list(APPEND LINKER_OPTIONS "--lto")<br>
+ endif()<br>
+endif()<br>
+<br>
if(X265_LATEST_TAG)<br>
# convert lists of link libraries into -lstdc++ -lm etc..<br>
foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div></div>