On Dec 2, 2011, at 02:02, Nicolas Pavillon wrote:

> The question I would like to ask is related to ticket #30761 
> (https://trac.macports.org/ticket/30761), in which it appears that 
> compilation of qtiplot hangs on Lion, and that changing optimizations options 
> from -O2 to -O0 solves the problem. 
> 
> The issue is that I tried to change this option at Portfile level, but 
> whatever I could try to adjust flags, the qmake command generates a 
> QMAKE_COMP_QMAKE_OBJECTIVE_CFLAGS variable which defines -O2. 
> Would someone know how to setup flags correctly to set up correctly this 
> parameter ?

Usually you would set the optimization level using:

configure.optflags -O0

I don't know if Qt uses that though. If not I'd consider it a bug though.

Are you sure -O0 is necessary? That means all optimization will be disabled, 
which means the program will be slow.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to