Comments (3)
This is actually a great scenario where build script overrides come into play. You'll want to make a ~/.cargo/config
file that looks like this:
[target.x86_64-unknown-linux-gnu.libgit2]
rustc-link-search = ["native=/path/to/libgit2/lib"]
rustc-link-lib = ["static=libgit2"]
That'll override libgit2-sys
's build script so you'll be able to manually configure how it's linked to. Lemme know if you have any more trouble though!
from git2-rs.
From your example, it looks like the override instructs cargo where to find the libgit2 library. Am I reading this correctly? In my case, I want to use the version of libgit2 that is shipped with git2-rs, not the version already on my system. How would I do that?
from git2-rs.
Oh oops, sorry for misreading! I'm unfortunately not really sure how to fix something like this other than just recommending that you unset CFLAGS
before the build :(
from git2-rs.
Related Issues (20)
- Blobless / Treeless (partial) clones HOT 3
- `libgit2-sys` fails to build with vendored openssl because of misconfigured `cc` parallelism HOT 4
- support building USE_SSH=exec HOT 1
- self sign certificate
- Tree.walk() broken for subtrees with non-utf-8 names HOT 1
- using russh
- Signing a tag HOT 1
- Unclear documatation: branch_remote_name
- Build problems with installed libgit2 1.8.0 HOT 3
- The error caused by failed `push_negotiation` is strange: `"config value 'pack.windowMemory' was not found"` HOT 4
- git clone arguments HOT 1
- Segmentation fault when cloning invalid URL HOT 1
- path matching inconsistent error
- How do you reset changed files and delete the untracked ones to bring repo to a clean state?
- push credentials on github actions HOT 1
- Use SSH over HTTPs HOT 1
- `branch_upstream_remote` says local branch does not exist when it does HOT 3
- Segfault during fetch HOT 8
- How to execute rebase - i to merge multiple commits into one
- Question about remote clone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2-rs.