devel/cmake: change some default CFLAGS from -O3 to -O2

Tobias C. Berner tcberner at freebsd.org
Thu Feb 21 18:56:14 GMT 2019


So it is something you should take upstream then :-)

With my kde@ hat on I have not been convinced that  there is  any benefit
in doing it.


Mfg Tobias


Alexey Dokuchaev <danfe at nsu.ru> schrieb am Do., 21. Feb. 2019, 13:42:

> On Thu, Feb 21, 2019 at 01:22:48PM +0100, Tobias C. Berner wrote:
> > Moin moin
> >
> > 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].
>
> Because cd /usr/ports/any/port && make -V CFLAGS -V CXXFLAGS
>
> -O2 -pipe  -fstack-protector -fno-strict-aliasing
> -O2 -pipe -fstack-protector -fno-strict-aliasing
>
> Basically, for the same reason why Fedora did that.  In most environments
> -O2 used as a balanced default.  I'm curious why CMake guys opted-in for
> -O3 in the first place...
>
> ./danfe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20190221/905186f5/attachment.html>


More information about the kde-freebsd mailing list