https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229326

--- Comment #3 from Kenneth Salerno <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"

Reply via email to