Don't do it. A database with high performance is no use if it doesn't work correctly, the MySQL / Sun builds are WELL TESTED.
Your build is not.
I can't imagine you getting a significant amount more performance than Sun anyway. They compile the code correctly for your platform; the subject the binaries to a barrage of auto-tests and smoke tests, as well as trying running it with real applications BEFORE they release them.
You will probably get more performance increases from IMPROVING YOUR OWN CODE rather than trying to improve on Sun's builds. And it will carry less risk, because you won't be risking major regressions in database behaviour.
If you have performance problems, your time is best spent improving your own code and doing testing. Developer time is a very, very expensive resource!