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’.



Thanks
Qiang


From: Dev [mailto:[email protected]] On Behalf Of VanCutsem, Geoffroy
Sent: Wednesday, May 28, 2014 12:18 AM
To: ???; [email protected]
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.

Geoffroy

From: Dev [mailto:[email protected]] On Behalf Of ???
Sent: Monday, May 26, 2014 8:59 AM
To: [email protected]<mailto:[email protected]>
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 :



https://lists.tizen.org/pipermail/general/2013-September/002504.html



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.

Hayoon.Ko
[http://mail.naver.com/readReceipt/notify/?img=3me91XkC1HKdpxIvMqmsKrKZMxFSpAJ4FoJ4KrKZKoMwKxMdKrMXFuIo%2BrkSKAE5W4d5W4C5bX0q%2BzkR74FTWx%2FspzkrtzwGbX3q7N3GD4k574eZpZ%2F%3D.gif]



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.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to