Please add -D_GLIBCXX_ASSERTIONS to default build flags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
New
|
Wishlist
|
Unassigned | ||
gcc-12 (Ubuntu) |
New
|
Wishlist
|
Unassigned |
Bug Description
This flag has a long history of distro use in Fedora [0] and is used
by Gentoo [1].
_GLIBCXX_ASSERTIONS was developed not to impact ABI or big-O complexity.
> The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
> checks, with no impact on class layout and minimal impact on runtime
> (and no changes in algorithmic complexity). It is intended to be
> suitable for both debug builds and release builds.
[2]
As with -D_FORTIFY_
and therefore have higher performance penalties.
When Fedora initially added this default flag some packages FTBFS. Now
packages appear stable.
[0] https:/
[1] https:/
[2] https:/
Changed in dpkg (Ubuntu): | |
importance: | Undecided → Wishlist |
Changed in gcc-12 (Ubuntu): | |
importance: | Undecided → Wishlist |
tags: | added: sec-1935 |
this is added to Fedora's and Gentoo's build systems. No, this definitely not a GCC default setting