why does standard configure uses -Os?
lists at eitanadler.com
Sun Dec 24 19:58:58 UTC 2017
On 24 December 2017 at 11:57, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Dec 24, 2017, at 04:36, Chris Jones wrote:
>> In general its not possible to say one setting will always perform better than another, its very use case dependant. For instance if you really want maximum numerical performance then -O3 can give significant gains, as it turns on a number of optimisations that can really help, like auto vectorisation. But, you would not want that as the default as some use cases might not like it. Its fine to have a default, but i would suggest each port should use whatever upstream has decided is its best optimisation level.
> Ports are free to override configure.optflags if desired.
This script is for base, not ports. Either way "its what Apple does"
is the answer I was looking for. Thanks!
More information about the macports-dev