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

Tobias C. Berner tcberner at freebsd.org
Thu Feb 21 12:22:48 GMT 2019


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].

mfg Tobias

On Thu, 21 Feb 2019 at 13:19, Alexey Dokuchaev <danfe at nsu.ru> wrote:

> Hi there,
>
> I was building some software on Fedora Linux with CMake and noticed
> that it was using -O2 optimization level while on FreeBSD, the same
> build was performed with -O3 for some reason.
>
> I've downloaded source .rpm for their CMake and found that they had
> to patch several Modules/{Compiler,Platform}/*.cmake files so they
> use -O2 for RELEASE mode.  I'm attaching the patch for convenience.
>
> I'm proposing we do the same in FreeBSD, esp. given that we default
> to -O2 elsewhere.
>
> ./danfe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20190221/ce93c5a7/attachment.html>


More information about the kde-freebsd mailing list