commit:     c115ecb8b22853eec7abade52a3790ccffeeb4b0
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 14 23:20:36 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 14 23:23:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c115ecb8

dev-util/mingw64-runtime: filter ssp for cross-compilation bits

Less likely to be an issue here given the whole crossdev involvement
which may or may not have working libssp, but it seems reasonable to
add and there's a way to override if needed.

Bug: https://bugs.gentoo.org/870136
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild | 1 +
 dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild  | 1 +
 dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
index d25b7c5a8cd2..10e3e63896d7 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
@@ -63,6 +63,7 @@ src_configure() {
        # likely cross-compiling from here, update toolchain variables
        if ${MW_CROSS} && [[ ! -v MINGW_BYPASS ]]; then
                unset AR AS CC CPP CXX LD NM OBJCOPY OBJDUMP RANLIB RC STRIP
+               filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
        fi
        local CHOST=${CTARGET}

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
index 44937f667232..c0f96c62bc21 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
@@ -65,6 +65,7 @@ src_configure() {
        # likely cross-compiling from here, update toolchain variables
        if ${MW_CROSS} && [[ ! -v MINGW_BYPASS ]]; then
                unset AR AS CC CPP CXX LD NM OBJCOPY OBJDUMP RANLIB RC STRIP
+               filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
        fi
        local CHOST=${CTARGET}

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
index d0a25ce8f9c1..572a65c6bce8 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
@@ -63,6 +63,7 @@ src_configure() {
        # likely cross-compiling from here, update toolchain variables
        if ${MW_CROSS} && [[ ! -v MINGW_BYPASS ]]; then
                unset AR AS CC CPP CXX LD NM OBJCOPY OBJDUMP RANLIB RC STRIP
+               filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
        fi
        local CHOST=${CTARGET}

Reply via email to