commit:     4edc739c2a9e4aa6f14b2489dc4bf19693542081
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  6 11:45:32 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug  6 11:48:43 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4edc739c

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 <AT> gentoo.org>

 dev-db/mysql/mysql-8.0.32-r2.ebuild | 4 +---
 1 file changed, 1 insertion(+), 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

Reply via email to