build: avoid embedding depends paths in build RPATH #36053

pull KvantaMechanic wants to merge 1 commits into bitcoin:master from KvantaMechanic:depends-no-build-rpath changing 1 files +5 −0
  1. KvantaMechanic commented at 2:48 PM on August 21, 2026: none

    After PR #33247 removed CMAKE_SKIP_BUILD_RPATH from the CMake build system as part of changes related to Guix binary checks, Linux builds using the depends toolchain could embed the absolute depends/<host>/lib path in build-tree binaries.

    One user-visible consequence was incorrect font rendering in the Bitcoin Core Qt GUI. Instead of rendering the bundled RobotoMono-Bold.ttf font as intended, the GUI could fall back to a system-provided font and sizing, resulting in text that was unpleasant to read and, in some cases, difficult to read.

    This PR restores build-RPATH suppression specifically for the depends toolchain, without reverting the broader changes from #33247 or affecting Guix builds. It also prevents Linux binaries built with depends from containing the absolute depends library path in their RPATH/RUNPATH.

    Tested on Linux x86_64 with depends builds on v31.1 and current master. After this change, bitcoin-qt, bitcoin-gui, and test_bitcoin-qt contain no RPATH/RUNPATH, and their generated link commands contain no -Wl,-rpath.

  2. build: avoid embedding depends paths in build RPATH 4bba46f515
  3. DrahtBot added the label Build system on Aug 21, 2026
  4. DrahtBot commented at 2:48 PM on August 21, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36053.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-21 21:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me