Date: Wed, 27 Jun 2018 18:10:36 +0000 From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 229326] [patch] Mk/bsd.gecko.mk remove forced -O3 optimization Message-ID: <bug-229326-21738-O2bjNDkGb5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-229326-21738@https.bugs.freebsd.org/bugzilla/> References: <bug-229326-21738@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229326 --- Comment #3 from Kenneth Salerno <kennethsalerno@yahoo.com> --- (In reply to Jan Beich from comment #2) > FreeBSD Port allows to override -O3 via CFLAGS in make.conf as only the l= ast -O<n> matters. make.conf is read before Mk/bsd.gecko.mk, so the CFLAGS+=3D-O3 is ultimatel= y 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-ef= fect 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.=20 I'm not sure what a compromise could be unless we introduce another port op= tion (disabled by default to not upset people) to optimize for size? See attached patch. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229326-21738-O2bjNDkGb5>