The extent of my programming skill is ./configure; make; make install, but I'd guess your compiler manual tells you how to specify library paths. Failing that, the internet probably has a newbie guide for C++ that tells you how to specify a library path in the code.
When I extract a source package to compile it, I sometimes see a lib/ folder, and I'd guess the configure.sh script tells make that this is where important library files are, and make then runs the appropriate commands. If I were you, I'd download a souce package (or use your mysql package), and examine the configure.sh and make files, see if you can work it out. For that matter, examine the program source code too. Learn by example!
Last edited by djeikyb; 08-31-2009 at 06:20 PM.