From owner-freebsd-stable@FreeBSD.ORG Wed Sep 21 18:47:49 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E63B16A41F for ; Wed, 21 Sep 2005 18:47:49 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EA0943D48 for ; Wed, 21 Sep 2005 18:47:49 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id j8LIlkVw023948; Wed, 21 Sep 2005 11:47:47 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: Alex Dupre Date: Wed, 21 Sep 2005 14:47:35 -0400 User-Agent: KMail/1.8.2 References: <200509211431.19141.lists@jnielsen.net> <4331A941.5090509@alexdupre.com> In-Reply-To: <4331A941.5090509@alexdupre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509211447.36390.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on ns1.jnielsen.net X-Virus-Status: Clean Cc: stable@freebsd.org, Kris Kennaway Subject: Re: MySQL 4.1, GCC 3.x, FreeBSD 4.x X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 18:47:49 -0000 On Wednesday 21 September 2005 14:41, Alex Dupre wrote: > John Nielsen wrote: > > I would like to experiment with different build options/flags in the > > hopes of boosting performance. Specifically, I'd like to build it with > > linuxthreads and optimized C flags, but I am wary of using -O3 with gcc > > 2.9. Am I just being paranoid? > > Yes, you are. Most MySQL binary packages are compiled with gcc 2.9 and > -O3. Good to know. Thanks! On Wednesday 21 September 2005 14:39, Kris Kennaway wrote: > USE_GCC is wrong, it's not a user-controllable variable. Set CC > instead. > > This might be OK as long as there is no C++ code involved, which > cannot be linked to C++ code from gcc 2.95. > > -O3 can be dangerous, so use with care. I might play around with the CC option. Thanks for straightening me out. JN