#24234: Update cln from 1.2.2 to 1.3.1 --------------------------------------------+------------------------------- Reporter: danmichaelo+macports@… | Owner: gwright@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: cln --------------------------------------------+------------------------------- Comment(by ryandesign@…): Replying to [comment:4 danmichaelo+macports@…]:
Yes, I were able to install and run the tests suite with -O2.
Compiled for what architecture, running on what version of Mac OS X?
So my guess was that the need for the removal of -O2 had to do with a bug in an older version of cln or g++
Shouldn't relate to an older version of cln, since the lines forcing the optimization level to -O were added to the portfile in r38679 at the same time as the version was updated to 1.2.2. Perhaps it was for an older version of g++, i.e. version 3.x which was on Panther. But MacPorts doesn't run on Panther anymore so if that's the case then we don't care about that anymore. Input from Greg would be appreciated here: where did you experience problems with the testsuite with -O2?
(the [http://www.ginac.de/CLN/cln_2.html#SEC7 CLN manual] hints on some issues with -O2 and old versions of g++..
But only on Sparc.
Also, the CLN manual warns about the -O3 flag, which was why I added the removal of it just in case. Since I'm quite new to MacPorts I do not know whether the defaults are overriden by the user's environment, etc. If you think -O2 always will be the default, then just remove the "-O2/-O3" part from the Portfile. My intention was just to make sure -O2 was chosen.
MacPorts clears the environment and sets up the defaults described in the guide. The default optimization level in MacPorts is -O2. See [http://guide.macports.org/#reference.phases.configure configure.optflags in the guide]. I don't think there's a way for the user to change this default either at MacPorts compile time nor from macports.conf. -- Ticket URL: <http://trac.macports.org/ticket/24234#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS