From: Eric Maryniak Date: March 18 1999 10:17am Subject: -O1 fix for Solaris still necessary for latest MySQL with egcs-1.1.2? List-Archive: http://lists.mysql.com/mysql/475 Message-Id: <3.0.5.32.19990318111751.06472ab0@ip005.niwi.knaw.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" When compiling MySQL with egcs (1.1.1) on Sun-Sparc/Solaris, the docu says ("4.11 System specific notes - 4.11.1 Solaris notes") on p. 44 to use the -O1 flag because higher levels of optimization produce wrong code. (by the way: i noticed the configure script still generates Makefiles that have "-O6" (hard coded it seems) in it, but _fortunately_ it is followed by "-O1" and egcs favours the last optim. level---hmm, does not really make you feel safe?). Now egcs 1.1.2 is out (http://egcs.cygnus.com/) and from the changes it seems they're mostly bug fixes (a/o in the code generation). My question: does the new egcs still produce wrong code with -O6 on Solaris or is it safe now to use -06. And a request: it would be very nice if configure just figures out it is running on a Solaris (`uname`) and generates the proper CC, CXX and CFLAGS/CXXFLAGS, so you can just say: ./configure && make && make install Bye-bye, Eric Maryniak -- Eric Maryniak Home page: http://pobox.com/~e.maryniak/ Netherlands Institute for Scientific Information Services (NIWI) Tel/Fax: +31 20 4628650/6685079. Internet: http://www.niwi.knaw.nl/ Computers are like airconditioners - they stop working properly if you open Windows.