On Fri, 2019-08-02 at 19:13 +0200, Björn 'besser82' Esser wrote:
Am Donnerstag, den 01.08.2019, 14:28 -0400 schrieb Steven A. Falco:
> The upstream KiCAD project has requested that I remove
> GLIBCXX_ASSERTIONS from the Fedora package, as described here:
>
https://bugs.launchpad.net/kicad/+bug/1838448
>
> What is the best way to do that? I can add "%undefine
> _hardened_build" (which I am testing now) but I think that will remove
> other hardening features that I might want to leave enabled.
>
> Steve
Simply add this to your spec file:
# Upstream recommends to turn off _GLIBCXX_ASSERTIONS.
# See: $UPSTREAM_BUG
%global optflags %optflags -U_GLIBCXX_ASSERTIONS
Am I the only one worried of seeing way too many people jumping on and
telling how to suppress these hardening features without a word of
cautiousness ?
I feel like we should scan all spec files for this kind of stuff and
raise bugs if we find more than a handful of packages with this kind of
"workarounds" ...
Simo.