How to build Universal Binary MySQL client libraries
You’ll need three ingredients:
You’ll also need an administrator account, and (to save complicating the script), you’ll need to make sure that whatever you set $prefix to is writeable by you (either because it already exists and is writeable, or because the parent is writeable).
Step 1.
Run the script:
bash ./build-mysql.sh
Step 2.
There is no step 2.
It’s a hack. The result has been barely tested. If it breaks, you get to keep both pieces. Note that this just builds the client and (most of) the scripts. If you use the default prefix (/opt/mysql5 in thee script), you’ll be left with quad-architecture universal libmysqlclient.16.dylib and libmysqlclient_r.16.dylib in /opt/mysql5/lib/mysql, as well as similarly-universal executables in /opt/mysql5/bin.
If you want to build the server too, just remove the Makefile.in and Makefile.am diffs from the patch file (so that you just remove AC_SYS_RESTARTABLE_SYSCALLS from configure.in); I have no need to do this and so haven’t tried it.
YMMV.
HTH.
HAND.