I try to compile a C++ code, using a library I\'ve also compiled manually and installed in /usr/local/lib
The compilation of the software fails at the linking step:
Specifying -L
switches in your makefile is a common way to deal with this problem, but you can actually make system-wide changes by modifying the default GCC spec file, which can be used to specify additional options to be passed to the compiler, linker, etc. I've done this in the past to address your specific problem, but it was a long time ago, so I can't give you a specific example, unfortunately.