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

Re: [PATCH 3/4] Linux: link against libdl

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 8, 2026, 10:12 UTC
Message-ID
<adYp_l5-PxzQdqRb@pks.im>
In-Reply-To
<20260403011249.4133372-4-sandals@crustytoothpaste.net>
On Fri, Apr 03, 2026 at 01:12:48AM +0000, brian m. carlson wrote:
Show 9 quoted lines
> Older versions of Rust on Linux, such as that used in Debian 11 in our
> CI, require linking against libdl.  Were we linking with Cargo, this
> would be included automatically, but since we're not, explicitly set it
> in the system-specific config.
> 
> This library is part of libc, so linking against it if it happens to be
> unnecessary will add no dependencies to the resulting binary.  In
> addition, it is provided by both glibc and musl, so it should be
> portable to almost all Linux systems.

Fair. I was wondering whether we should make this conditional on WITH_RUST, but if it doesn't make a difference anyway I don't see why we should.

Patrick
Previous: brian m. carlsonNext: Junio C Hamano
Message 8 of 9 in “Enable Rust by default”
  1. 0/4 Enable Rust by defaultbrian m. carlson, Apr 3, 2026
  2. 4/4 Enable Rust by defaultbrian m. carlson, Apr 3, 2026
  3. Patrick SteinhardtApr 8, 2026
  4. 2/4 ci: install cargo on Alpinebrian m. carlson, Apr 3, 2026
  5. Patrick SteinhardtApr 8, 2026
  6. 1/4 docs: update version with default Rust supportbrian m. carlson, Apr 3, 2026
  7. 3/4 Linux: link against libdlbrian m. carlson, Apr 3, 2026
  8. Patrick SteinhardtApr 8, 2026
  9. Junio C HamanoApr 3, 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.