From: Jeroen Ruigrok/A. <as...@da...> - 2001-12-19 07:13:04
|
-On [20011217 22:30], Timothy A. Seufert (ta...@mi...) wrote: >Building for Carbon under MacOS X requires use of the >-fpascal-strings switch, because Carbon code uses Pascal strings >(legacy dating back to the days when the original MacOS was written >in Pascal and 68K assembly). I've also added some optimization flags. >+ C_OPT="-O3 -mcpu=750 -fpascal-strings" # optimize for speed >+ CFLAGS="$C_OPT" >+ CXXFLAGS="$CFLAGS" You are effectively mixing two very distinct things: compilation fixes and optimisation additions. Hardcoding -O3 is silly, given gcc has had (has?) documented cases for Alpha (and possibly for other architectures) where any optimisation level higher than -O results in broken code every now and then. IMHO, you should only add the -fpascal-strings in this case, and let optimisation stuff be taken care of by the environment setting of CFLAGS, or what is specified on the command line when running configure. That, plus that assuming everyone's machine is a 750 is not what everybody uses. -- Jeroen Ruigrok van der Werven / Asmodai / Kita no Mono / xMach coreteam asmodai@[wxs.nl|xmach.org], finger as...@ni..., www.xmach.org A liar needs a good memory... |