Re: using non-standard optflags (-O3, in particular)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Miller wrote:


How about I include a specific benchmark test in build section that runs
for, say, a minute, and then use that to auto-select between O2 and O3 on a
per-build basis? :)


As a compromise, you could supply both in the same RPM, or even split off the -O3 version into a subrpm with some sort of suffix to distinguish it from the 'default' -O2 version.

eg:

/usr/bin/someprogram       (-O2)
/usr/bin/someprogram_O3    (-O3)

IIRC i've seen similar things done in the past, for example where it might be advantageous to supply both an OpenGL version and a non-OpenGL version. Coincidentally I had to deal with a package for another repo where upstream used -O3 by default and the resultant binary was horribly unstable but -O2 was fine.



--
Ian Chapman.

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux