#1123689 dash FTCBFS: passes host LDFLAGS to CC_FOR_BUILD

Package:
src:dash
Source:
src:dash
Submitter:
Helmut Grohne
Date:
2025-12-19 22:05:35 UTC
Severity:
normal
Tags:
#1123689#5
Date:
2025-12-19 15:18:22 UTC
From:
To:
Source: dash
Severity: important
Justification: breaks architecture cross bootstrap
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
User: helmutg@debian.org
Usertags: rebootstrap
X-Debbugs-Cc: debian-dpkg@lists.debian.org

Hi,

dpkg started adding -mbranch-protection=standard to LDFLAGS. Since like
forever, dash passes LDFLAGS to CC_FOR_BUILD and that doesn't go well.
I'm attaching a patch to stop it from doing so as we already do for
CFLAGS and others.

Helmut