Bug: Makefile ignores CARGO_TARGET_DIR
- From
William Pursell <william.r.pursell@gmail.com>
- Date
- Jul 28, 2026, 11:46 UTC
- Message-ID
- <CAJPQ5NbTLnbe_VU1awCVggw5m9kGdBZssrZBp8G0YxcMjb_rwA@mail.gmail.com>
The Makefile hardcodes the path to the Rust static library at line 962, but the cargo invocation at line 3036 does not override CARGO_TARGET_DIR. (line numbers are relative to 9a0c4701)
When CARGO_TARGET_DIR is set in the environment, the link step fails:
clang: error: no such file or directory: 'target/release/libgitcore.a'