-
Notifications
You must be signed in to change notification settings - Fork 69
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
Static linking doesn't work #174
Comments
|
I'm pretty sure static linking only works when I'm looking into building If that is the case, I think the documentation and error messages can be improved to make this more clear. |
Yeah, I did try using clang built from source but maybe I missed a cmake option to build everything as a single libclang.a file, not sure. Currently I have a |
Looks like you need to turn the And have PIC disabled: |
This worked for me (in a freshly cloned
That (eventually) produced Then, after setting the (Note: It was taking ages to link the zillions of LLVM/Clang static libraries until I switched to nightly Rust which uses |
I've updated the error message for when static linking fails to find |
After I fixed #168 in my fork, I realized clang-sys tries to find libclang.a which doesn't exist. Instead it should be using all of the clang libraries (
libclang*.a
, not a singularlibclang.a
)The text was updated successfully, but these errors were encountered: