After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751556 - geary-0.10.0: stop appending CFLAGS
geary-0.10.0: stop appending CFLAGS
Status: RESOLVED WONTFIX
Product: geary
Classification: Other
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-26 18:05 UTC by Pacho Ramos
Modified: 2016-04-03 12:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
geary-cflags.patch (659 bytes, patch)
2015-06-26 18:05 UTC, Pacho Ramos
none Details | Review

Description Pacho Ramos 2015-06-26 18:05:57 UTC
Created attachment 306179 [details] [review]
geary-cflags.patch

We are needing to carry a patch downstream at Gentoo for a long time to prevent build scripts from forcing some CFLAGS (like -O2 or -g)

Maybe it could be considered for being upstreamed finally
Comment 1 Robert Schroll 2015-06-27 21:24:52 UTC
Sadly, being able to run geary under a debugger is frequently necessary.  We're not going to remove it unconditionally.  It'd be reasonable to only use the -g flag when DEBUG is set, though.

I don't know how important the optimization flag is, offhand.
Comment 2 Michael Gratton 2016-04-03 11:20:11 UTC
Hi Pacho,

Is this still an issue for Gentoo?

Per Robert's comment, a patch that adds -g only when DEBUG is set (i.e. the opposite of the conditional in the above) would be good, and especially if you could back it up with some timings then we could possibly drop the -O2.
Comment 3 Pacho Ramos 2016-04-03 12:36:05 UTC
Well, it's not a problem for us as we carry the patch for not changing the FLAG and, instead, rely on users using proper CFLAGS for each case (for example, for debugging purposes, we ask them to rebuild with -g and other flags like -ggdb or dropping optimization flags like -O3... - https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces )
Comment 4 Michael Gratton 2016-04-03 12:57:33 UTC
Okay, well if you're happy to maintain the patch downstream then I'll close this as WONTFIX for now.

If that becomes annoying please do reopen this and I'll be happy to consider a patch that works as outlined in comment #2.