This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: CFLAGS
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: Irina Rozet <irozet at fsw dot fujitsu dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 5 Sep 2002 14:19:47 +0200
- Subject: Re: CFLAGS
- References: <3D766066.70CC584D@fsw.fujitsu.com>
On Wednesday 04 September 2002 21:35, Irina Rozet wrote:
> Hi!
>
> I compiled gcc -2.95 on Solaris 8 sparc, and got an issue with CFLAGS
> My native cc compiler has optimization flag "-xO2" , it does not
> understand "-O2".
> So I set CFLAGS=-xO2 before run configure.
> Then compilation with cc compiler was OK, but this flag was passed to
> xgcc also.
> Again, xgcc does not understand -xO2, and I had to correct Makefiles
> manualy.
Compile gcc without optimization first, then recompile using gcc with
optimization.
Bo.
--
Bo Thorsen | Praestevejen 4
Free software developer | 5290 Marslev
SuSE Labs | Denmark