MySQL 4.1, GCC 3.x, FreeBSD 4.x

Kris Kennaway kris at obsecurity.org
Wed Sep 21 11:40:01 PDT 2005


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.

-O3 can be dangerous, so use with care.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050921/086b2a42/attachment.bin


More information about the freebsd-stable mailing list