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

custom static build fails, because build uses llvm-config --libs without using --libdir #50

Closed
kornelski opened this issue Mar 28, 2017 · 3 comments

Comments

@kornelski
Copy link
Contributor

I built static llvm and clang, and did make install to custom, non-standard directories.

Static build.rs of clang-sys get_llvm_libraries() only queries llvm-config --libs, but this output just lists lib names (-lLLVMLTO -lLLVMPasses) and lacks any -L flags required to find them.

This fixes the build for me:

print!("-L {} ", run_llvm_config(&["--libdir"]).expect("libdir"));
@KyleMayes
Copy link
Owner

The build script assumed that libclang.a and the other Clang static libraries are in the same directory as the LLVM static libraries, I'm guessing that's not the case for your custom build.

Could you test the llvm-static branch? Thanks.

@kornelski
Copy link
Contributor Author

Yes, it builds now. Thank you.

@KyleMayes
Copy link
Owner

v0.15.1 has been released with this fix.

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

No branches or pull requests

2 participants