[Bug 229326] [patch] Mk/bsd.gecko.mk remove forced -O3 optimization
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 27 18:10:38 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229326
--- Comment #3 from Kenneth Salerno <kennethsalerno at yahoo.com> ---
(In reply to Jan Beich from comment #2)
> FreeBSD Port allows to override -O3 via CFLAGS in make.conf as only the last -O<n> matters.
make.conf is read before Mk/bsd.gecko.mk, so the CFLAGS+=-O3 is ultimately the
last parameter and thus forced. The only way around it short of hacking
Mk/bsd.gecko.mk is to unset OPTIMIZED_CFLAGS, but then this has the side-effect
of passing configure --disable-optimize which adds the flag
-fno-omit-frame-pointer which increases function call time if you have no
intention of debugging.
I'm not sure what a compromise could be unless we introduce another port option
(disabled by default to not upset people) to optimize for size? See attached
patch.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-gecko
mailing list