Skip to content

Conversation

parthpower
Copy link

gcc looks for LIBRARY_PATH for library search path1

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).

Footnotes

  1. https://gcc.gnu.org/onlinedocs/gcc-12.5.0/gcc/Environment-Variables.html#:~:text=LIBRARY_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant