<div dir="ltr"><div>Moin moin<br></div><div><br></div><div>Why? Is there a reason you would prefer -O2?   [ Don't take this as me saying no to doing it, just curious about the reasons].<br></div><div><br></div><div>mfg Tobias<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 21 Feb 2019 at 13:19, Alexey Dokuchaev <<a href="mailto:danfe@nsu.ru">danfe@nsu.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there,<br>
<br>
I was building some software on Fedora Linux with CMake and noticed<br>
that it was using -O2 optimization level while on FreeBSD, the same<br>
build was performed with -O3 for some reason.<br>
<br>
I've downloaded source .rpm for their CMake and found that they had<br>
to patch several Modules/{Compiler,Platform}/*.cmake files so they<br>
use -O2 for RELEASE mode.  I'm attaching the patch for convenience.<br>
<br>
I'm proposing we do the same in FreeBSD, esp. given that we default<br>
to -O2 elsewhere.<br>
<br>
./danfe<br>
</blockquote></div>