[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 21 Jul 2026 15:20:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296962

--- Comment #4 from Shawn Webb <shawn.webb@hardenedbsd.org> ---
(In reply to lysfjord.daniel from comment #2)
> It did work just fine on 2.7.5. What changed? I can see in the build log, there's -fPIC lots of places.

Huh, I'm not sure. I haven't paid too close attention to the development of pkg
beyond just supporting the few changes we have downstream. We first wrote our
PIE integration patch for pkg in 2023, well before 2.7.5. And at that time, if
PIE was introduced via ports, then /usr/local/sbin/pkg-static would end up
being compiled as a PIE.

It sounds more like my knowledge of PIE in pkg is a bit stale, dating back to
our work in 2023. Things have changed since then. Sorry for the noise.

-- 
You are receiving this mail because:
You are the assignee for the bug.