[Dev] [Tizen General] How can I remove "-O2" flag when I build project for GBS?

Zhang, Qiang Z qiang.z.zhang at intel.com
Wed May 28 02:12:41 GMT 2014

Yes, gbs does/will not support this low level settings.

CFLAGS can be reset in spec file like:

export CFLAGS="…."
%configure …
make …

If you want to build multiple packages without this -O2 option, you can update build config used by gbs by removing “-O2” from optflags line.

Build config can be downloaded from remote repo automatically, or specified in command line option (-D), or in .gbs.conf file with key ‘buildconf’.


From: Dev [mailto:dev-bounces at lists.tizen.org] On Behalf Of VanCutsem, Geoffroy
Sent: Wednesday, May 28, 2014 12:18 AM
To: ???; dev at lists.tizen.org
Subject: Re: [Dev] [Tizen General] How can I remove "-O2" flag when I build project for GBS?

The quickest way to experiment with this for a single package may be to set it directly via the spec file.


From: Dev [mailto:dev-bounces at lists.tizen.org] On Behalf Of ???
Sent: Monday, May 26, 2014 8:59 AM
To: dev at lists.tizen.org<mailto:dev at lists.tizen.org>
Subject: [Dev] [Tizen General] How can I remove "-O2" flag when I build project for GBS?

Hello. I'm trying to build Tizen Telephony module with changed gcc option. I want to change optimization level, so I'm trying to apply -Os option for compilation.

I've checked several .conf files but could not find where to change for the value "__global_cflags' .

I've googled and found an old article :


and it suggested to change /var/tmp/<user>-gbs/tizen.conf file. So I've tried but I could not find "__global_cflags" section there.

Please let me know how to control compilation option for gbs.

Thanks and Regards.


Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20140528/6fc8addc/attachment.html>

More information about the Dev mailing list