I am using clang on a Mac but I think this question will have the same answer for gcc (and any other unix system -- hopefully).
Right now, I can't link against libboost because it lives in /usr/local/lib. Sure, I can get it to do it with the -L/usr/local/lib and setting LD_LIBRARY_PATH to include /usr/local/lib, but I want my system to search for libraries and includes in /usr/local without the need to specify it in the command line.
Is there a way to do this?