URGENT

I GET AN ERROR MESSAGE WHILE DOING MAKE OF MYSQL
ERROR GOES SOMETHING LIKE THIS:
Error while make in Mysql exit 1;fi
gcc:cannot specify -o with -c or -S and multiple compilations
[make 2]; ****[my_new.0] error1
[make 2]: leaving dir /usr/local
[make 1]: *** [all-recursive] Error1

i have tried using 2 diffrent versions of mysql
i am build a LAMP configuration on my pc with rhl9 in text mode using
CFLAGS="-O3"
CXX=gcc
CXXFLAGS="-O3
-mpentiumpro
-mstack-align-double
-felide-constructors
-fno-exceptions -fno-rtti"
./configure
–prefix=/usr/local/mysql
–with-extra-charsets=complex
–enable-thread-safe-client
–enable-local-infile
–enable-assembler
–disable-shared
–with-client-ldflags=-all-static
–with-mysqld-ldflags=-all-static

i don’t seem to get an error message here
then when i type make iget the error message after some time

would really like to know what is wrong AND HOW TO SOLVE IT it is very urgent

Please paste gcc -v

Check ./configure with different options (like without assembler etc), at one point make should run without errors.

You should also paste few more lines before “gcc:cannot specify”