LIBRARY_PATH

gcc が利用する環境変数。 リンカの指定は -lmath のように、ライブラリ名称だけを指定するが、そのライブラリがどこにあるのかを見つけるために利用される環境変数っぽい。

Environment Variables (Using the GNU Compiler Collection (GCC))

Environment Variables (Using the GNU Compiler Collection (GCC))

gcc.gnu.org

LIBRARY_PATH The value of LIBRARY_PATH is a colon-separated list of directories, much like PATH. When configured as a native compiler, GCC tries the directories thus specified when searching for special linker files, if it cannot find them using GCC_EXEC_PREFIX. Linking using GCC also uses these directories when searching for ordinary libraries for the -l option (but directories specified with -L come first).