Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search libclang in LIBRARY_PATH too. #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeandudey
Copy link
Contributor

Systems like Guix (and maybe Nix) set the LIBRARY_PATH variable for compilers to find libraries when in an environment, for example:

guix shell --pure gcc-toolchain clang --search-paths
The following derivation will be built:
  /gnu/store/vh5jffs835hcml8pg9wlsbdnygfmfwq8-profile.drv

building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
building directory of Info manuals...
building profile with 2 packages...
export PATH="/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/bin:/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/sbin"
export C_INCLUDE_PATH="/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/include"
export CPLUS_INCLUDE_PATH="/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/include/c++:/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/include"
export OBJC_INCLUDE_PATH="/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/include"
export LIBRARY_PATH="/gnu/store/akpz799zak3qzh73m6nbql5i3mljnny5-profile/lib"

This variable is used by GCC when linking libraries, e.g. when passing -lclang without the need to pass the path to the library in the arguments.

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