public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lldpad] rawhide: Drop obsolete libtool hardening-flags sed hack
@ 2026-10-05 12:23 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-10-05 12:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/lldpad
            Branch : rawhide
            Commit : d51c208cf5d1abf55b36acb9c02adc94fac6601c
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-09-16T19:56:44+02:00
            Stats  : +0/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/lldpad/c/d51c208cf5d1abf55b36acb9c02adc94fac6601c?branch=rawhide

            Log:
            Drop obsolete libtool hardening-flags sed hack

This worked around old libtool not passing CFLAGS/LDFLAGS to the
compiler_flags used during linking, which broke hardened builds.
Verified with fedpkg mockbuild that the built binaries still have
full RELRO, PIE and BIND_NOW without the workaround.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---
diff --git a/lldpad.spec b/lldpad.spec
index b6d22f6..4b7ec65 100644
--- a/lldpad.spec
+++ b/lldpad.spec
@@ -49,8 +49,6 @@ that use %{name}.
 ./bootstrap.sh
 CFLAGS=${CFLAGS:-%optflags -Wno-error -fcommon}; export CFLAGS;
 %configure --disable-static
-# fix the hardened build flags
-sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
 %make_build
 
 %install

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-05 12:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 12:23 [rpms/lldpad] rawhide: Drop obsolete libtool hardening-flags sed hack Michal Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox