commit:     3c6d544bad8c84e6f627fdf5a2e54fd269040de4
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 19:51:29 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 19:51:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3c6d544b

sys-devel/gcc-7.4.0: add fix for Cygwin, bug #657594

Closes: https://bugs.gentoo.org/657594
Package-Manager: Portage-3.0.12.0.2-prefix, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/gcc/gcc-7.4.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc/gcc-7.4.0.ebuild b/sys-devel/gcc/gcc-7.4.0.ebuild
index c1ad3f6c2f..bbd5ce8c5a 100644
--- a/sys-devel/gcc/gcc-7.4.0.ebuild
+++ b/sys-devel/gcc/gcc-7.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -65,6 +65,11 @@ src_configure() {
                        export ac_cv_func_memalign=no
                        export ac_cv_func_posix_memalign=no
                ;;
+               *-cygwin*)
+                       # use built-in SSP with Cygwin 2.10
+                       # FIXME: --disable-libssp should suffice in GCC 8
+                       export gcc_cv_libc_provides_ssp=yes
+               ;;
                i[34567]86-*-linux*:*" prefix "*)
                        # to allow the linux-x86-on-amd64.patch become useful, 
we need
                        # to enable multilib, even if there is just one 
multilib option.

Reply via email to