Compiler flags and memory usage

Reindl Harald h.reindl at thelounge.net
Sun Jun 15 22:37:44 UTC 2014


Am 16.06.2014 00:12, schrieb Kevin Kofler:
> Antonio Trande wrote:
>> To pass these problems, I had to decrease '-O' optimization flag
>> gradually to '-O1' or '-O0', latest attempt is the removal of '-pipe'
>> from RPM_OPT_FLAGS.
>>
>> What's best choice in these cases?
> 
> Definitely not -O0, that generates really crappy (slow and large) code. I'd 
> also not recommend -O1. If you must change something, remove -pipe, that 
> only makes builds slower (given sufficient RAM for the piping), but does not 
> affect the quality of the generated code

i would add here
%_smp_mflags -j1

if it comes to reduce memory due compile

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140616/e32dc047/attachment.sig>


More information about the devel mailing list