diff options
author | 2023-08-06 12:45:32 +0100 | |
---|---|---|
committer | 2023-08-06 12:48:43 +0100 | |
commit | 4edc739c2a9e4aa6f14b2489dc4bf19693542081 (patch) | |
tree | 2b75eaac53d892f280f4191029613147a12f5eae /dev-db | |
parent | sys-apps/acl: use tc-enables-fortify-source (diff) | |
download | gentoo-4edc739c2a9e4aa6f14b2489dc4bf19693542081.tar.gz gentoo-4edc739c2a9e4aa6f14b2489dc4bf19693542081.tar.bz2 gentoo-4edc739c2a9e4aa6f14b2489dc4bf19693542081.zip |
dev-db/mysql: use tc-enables-fortify-source
Better than fragile optimisation level checking.
Bug: https://bugs.gentoo.org/841770
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mysql/mysql-8.0.32-r2.ebuild | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dev-db/mysql/mysql-8.0.32-r2.ebuild b/dev-db/mysql/mysql-8.0.32-r2.ebuild index 2f830014963c..c2f3cdba598b 100644 --- a/dev-db/mysql/mysql-8.0.32-r2.ebuild +++ b/dev-db/mysql/mysql-8.0.32-r2.ebuild @@ -199,9 +199,7 @@ src_configure() { # modified GCC to set 3). # # bug #891259 - if is-flagq '-O[23]' || is-flagq '-Ofast' ; then - # We can't unconditionally do this b/c we fortify needs - # some level of optimisation. + if tc-enables-fortify-source ; then filter-flags -D_FORTIFY_SOURCE=3 append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 fi |