Description of problem:
settings.mk adds the -O switch to CC_FLAGS, but Fedora's $RPM_OPT_FLAGS, which should be passed to the extension build, already define -O2. This makes the -O unnecessary.
Version-Release number of selected component (if applicable):
libreoffice-sdk-18.104.22.168-6.fc15 and the 3.4 versions if F-16
Come on, does it really bother you so much?
Well, we do generally have a policy to try and use the same flags everywhere. -O/-O2 probably isn't that big a deal, but we should be seeing -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 appear in there too, or at least be possible to insert into them when we build an c++ extension from a .spec
@vpvainio: btw, looking into this, I note that at least <http://pkgs.fedoraproject.org/gitweb/?p=libreoffice-voikko.git;a=blob;f=libreoffice-voikko.spec;h=2e38aef27f9bd7735d64ed9baa1a10ac0ec4f3c9;hb=1143e45369c65ecec8e6db0ea9eed613c1bcb8f7#l45> sets OPT_FLAGS that appears to be completely unused in libreoffice?
(In reply to comment #3)
> @vpvainio: btw, looking into this, I note that at least
> sets OPT_FLAGS that appears to be completely unused in libreoffice?
I'm not sure I understand what you mean. The Makefile in libreoffice-voikko does use OPT_FLAGS like this:
VOIKKO_CC_FLAGS=$(OPT_FLAGS) $(WARNING_FLAGS) -Ibuild/hpp -I$(PRJ)/include/stl -I$(PRJ)/include
and when building the cpp files:
$(CC) $(CC_FLAGS) $(VOIKKO_CC_FLAGS) $(CC_DEFINES) $(VOIKKO_CC_DEFINES) $(CC_OUTPUT_SWITCH)$@ $<
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '16'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 16's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 16 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" and open it against that version of Fedora.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
libreoffice-sdk-22.214.171.124-8.fc19 will allow "make OPT_FLAGS=..." to override any optimization/debugging flags set in the SDK's settings.mk, see upstream <http://cgit.freedesktop.org/libreoffice/core/commit/?id=a14eedf997daf30379ceabc1933273360d4d3188> "rhbz#742780: Let make OPT_FLAGS=... override SDK optimization/debugging flags."