Frank Mash stated:
< Thank you for your reply.
< 
< >> Yup, looks like its mixing both gcc and SunC compiler options.
< 
< >> The -xc99=none is a Sun C compiler option.
< 
< >> eg, '-O2 -MT -MB -MP -MF' are all gcc options, whereas '-xO3 -md -x...'
< are all SunC compiler options.
< 
< >> The configure script seems to be doing this for some reason. You don't
< have CFLAGS or CPPFLAGS set in your environment per chance ?
< 
< How can I force configure and make to use the gcc compiler? Do I just need to 
set CFLAGS and CPPFLAGS in my environment. If so, what values should I set them 
to? I know this is a 101 question but your answer would assist me a lot.

  Just read the original configure output again.  Its mysql thats putting
  in the Sun C options.  Seems your local copy of mysql in /usr/local was
  compiled with Sun C compiler:

checking for mysql_config... /usr/local/mysql/bin/mysql_config
checking MySQL C flags... -I/usr/local/mysql/include -xO3 -mt -D_FORTEC_
-xarch=v9 -xc99=none
checking MySQL linker flags... -xarch=v9 -L/usr/local/mysql/lib -lmysqlclient_r
-lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc

  Why not use the Sun C compiler instead of gcc then since mysql is compiled
  with it..

Sean.
.
< 
< Thanks,
< Frank
<  
<  
< This message posted from opensolaris.org
< _______________________________________________
< opensolaris-discuss mailing list
< [email protected]

-- 
Sean.
.
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to