Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2005 11:23:31 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        stable@freebsd.org, sysadmin@alexdupre.com
Subject:   Re: MySQL 4.1, GCC 3.x, FreeBSD 4.x
Message-ID:  <20050922015331.GO84772@wantadilla.lemis.com>
In-Reply-To: <20050921183955.GA97891@xor.obsecurity.org>
References:  <200509211431.19141.lists@jnielsen.net> <20050921183955.GA97891@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--XMHqbYJb993HXwLR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wednesday, 21 September 2005 at 14:39:55 -0400, Kris Kennaway wrote:
> 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 FreeBSD
>> 4.11 machine?
>>
>> I have a server which, for the time being at least, cannot be updated to
>> FreeBSD 5.  I'm currently running the stock MySQL 4.1.14 compiled from the
>> port with no make flags.
>>
>> 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?
>>
>> When I try this from databases/mysql41-server:
>> make WITH_LINUXTHREADS=yes BUILD_OPTIMIZED=yes USE_GCC=3.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.

There's lots of C++ code in MySQL.

Greg
--
See complete headers for address and phone numbers.

--XMHqbYJb993HXwLR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFDMg6bIubykFB6QiMRAtnYAJ41j6Ql/g0rbwc6DFw1shylTtY1YwCeJooX
CiMlrhWUFsBPm9fSQ+4joXo=
=xgst
-----END PGP SIGNATURE-----

--XMHqbYJb993HXwLR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050922015331.GO84772>