← Back to issue list

`enable-patchelf` build-attribute uses `ld` for the build-on host, not the build-for host

View original Github issue

Metadata

Project
snapcraft
Number
#5836
Type
issue
State
open
Author
lengau
Labels
Status: Triaged
Created
2025-10-21 20:05:37+00:00
Updated
2026-02-05 16:09:10+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description When cross-compiling uv on arm64 for armhf and enabling patchelf, I end up with a 32-bin ARM executable that's interpreted with `/snap/core24/current/lib/ld-linux-aarch64.so.1` rather than `/snap/core24/current/lib/ld-linux-armhf.so.3`. ### To Reproduce Try building [uv-snap](https://github.com/lengau/uv-snap/tree/candidate-armhf) from the `candidate-armhf` branch. ### Environment n/a ### snapcraft.yaml ```yaml https://github.com/lengau/uv-snap/tree/candidate-armhf ``` ### Relevant log output ```shell n/a ``` ### Additional context _No response_

Evaluation history

No evaluation history available.