This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CFLAGS


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]