On Sat, 2010-03-20 at 00:20 +0100, eric wrote:
> About optimisation, what I have remarked, that the default value is
> CDEFAULTOPT*=-O2  in solenv/inc/unxlngx.mk
> 
> And in solenv/inc/unxlngmips.mk, there is :
> CDEFAULTOPT=-Os
> 
> Now, reading gcc documentation, I found that the last value passed wins. 
> So we can consider the CDEFAULTOPT*=-O2 wins, because  -Os is written 
> before the include unxlng.mk (if I'm not wrong) in unxlngmips.mk.

No. Just use export VERBOSE=true to see what command line options are
actually passed to gcc. The dmake rule of CDEFAULTOPT*=-O2 says to set
CDEFAULTOPT to -O2 if CDEFAULTOPT has not already been set to somethine,
and it has already been set to -Os so only -Os will be passed to gcc.

C.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to