Telling ld where to look for directories via an environment variable
问题 I'm grading C and C++ files for a class, and this assignment uses the GSL library. Since I don't have root permission on my computer, my GSL library is installed in my home directory, and thus I need to tell compilers and linkers where to find it. This isn't a problem when I write a program myself, because I just add the appropriate -L and -I flags to gcc. But when I'm compiling student's files, I don't want to edit every one of their makefiles. Instead, I want to put the appropriate