git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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'
Next: Todd Zullinger
Message 1 of 2 in “Bug: Makefile ignores CARGO_TARGET_DIR”
  1. William PursellJul 28, 2026
  2. Todd ZullingerJul 28, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.