This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=5b18d31bc6a13d7728423b917d83461d34b22069 commit 5b18d31bc6a13d7728423b917d83461d34b22069 Author: Guillem Jover <[email protected]> AuthorDate: Sun Jan 18 02:35:51 2026 +0100 Revert "Dpkg::Vendor: Add branch hardening flags to LDFLAGS" This reverts commit cdf5f5da0e0cb6f9f4d51e93fd9583bd578c252f. These flags are not supposed to be passed during linking. This is causing fallout for direct ld(1) invocations, and for other languages such as D, where these end up being passed to its linker which then fails. Closes: #1125323, #1125715 Signed-off-by: Guillem Jover <[email protected]> --- scripts/Dpkg/Vendor/Debian.pm | 1 - scripts/Dpkg/Vendor/Ubuntu.pm | 1 - 2 files changed, 2 deletions(-) diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index 4e722cafa..15f0840f8 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -659,7 +659,6 @@ sub add_build_flags { # be on derivatives. if (defined $flag) { $flags->append($_, $flag) foreach @compile_flags; - $flags->append('LDFLAGS', $flag); } } diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm index 1d62e05bf..2af1e2a3d 100644 --- a/scripts/Dpkg/Vendor/Ubuntu.pm +++ b/scripts/Dpkg/Vendor/Ubuntu.pm @@ -190,7 +190,6 @@ sub add_build_flags { } if (defined $flag) { $flags->append($_, $flag) foreach @compile_flags; - $flags->append('LDFLAGS', $flag); } } -- Dpkg.Org's dpkg

