From owner-freebsd-stable@FreeBSD.ORG Wed Sep 21 18:40:01 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 8F4DF16A41F for ; Wed, 21 Sep 2005 18:40:01 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A5FC43D4C for ; Wed, 21 Sep 2005 18:40:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j8LIdx0r016130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2005 14:39:59 -0400 Received: from obsecurity.dyndns.org (localhost.localdomain [127.0.0.1]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j8LIdu6P008933; Wed, 21 Sep 2005 14:39:56 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6EFF351288; Wed, 21 Sep 2005 14:39:55 -0400 (EDT) Date: Wed, 21 Sep 2005 14:39:55 -0400 From: Kris Kennaway To: John Nielsen Message-ID: <20050921183955.GA97891@xor.obsecurity.org> References: <200509211431.19141.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <200509211431.19141.lists@jnielsen.net> User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org, sysadmin@alexdupre.com 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:40:01 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 21, 2005 at 02:31:18PM -0400, John Nielsen wrote: > Should it be possible to compile and run MySQL 4.1 with GCC 3.4 on a Free= BSD=20 > 4.11 machine? >=20 > I have a server which, for the time being at least, cannot be updated to= =20 > FreeBSD 5. I'm currently running the stock MySQL 4.1.14 compiled from th= e=20 > port with no make flags. >=20 > I would like to experiment with different build options/flags in the hope= s=20 > of boosting performance. Specifically, I'd like to build it with=20 > linuxthreads and optimized C flags, but I am wary of using -O3 with gcc= =20 > 2.9. Am I just being paranoid? >=20 > When I try this from databases/mysql41-server: > make WITH_LINUXTHREADS=3Dyes BUILD_OPTIMIZED=3Dyes USE_GCC=3D3.4 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. Kris --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDMaj6Wry0BWjoQKURAnsaAKCRIHBORs2BSc5+tLp8TQveuM/oEwCfYbpl tqTa+9PFjq8bVYc1kV9PHnI= =M9N7 -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--