Use mysql_config for linking mysql client
http://ubuntuforums.org/showthread.php?t=1666018