Have a look [here](http://git.openembedded.org/openembedded/tree/recipes/mysql/mysql5_5.1.40.inc#n33) for potential flags that may be usefull. There is also the [optware](http://svn.nslu2-linux.org/svnroot/optware/trunk/make/mysql5.mk) file that can give some clues.