MySQL Forums
Forum List  »  Source, Builds, Binaries

What are the best GCC flags to compile mysql 5.5.8?
Posted by: Neil Armstrong
Date: December 22, 2010 02:38AM

My configuration:
CentOS 5.5 64-bit
GCC 4.5.2
CMake 2.8.3
glib-2.12.3
glibc-2.5-49

1. I need to compile mysql 5.5.8 through GCC from source to make it run as fast as possible just on one server. What are the best flags to compile mysql 5.5.8 on a concrete server?
I've been recomended the next flags from one enthusiast:

CFLAGS="-march=native -mtune=native -O3 -pipe -static-libgcc -fomit-frame-pointer -mfpmath=both ffast-math -fno-rtti -felide-constructors -fno-exception" CXXFLAGS="${CFLAGS}" cmake -DBUILD_CONFIG=mysql_release

Are they good and enough?

2. How can I know which flags adds -DBUILD_CONFIG=mysql_release after the build has been configured?

Options: ReplyQuote


Subject
Views
Written By
Posted
What are the best GCC flags to compile mysql 5.5.8?
4168
December 22, 2010 02:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.