commit:     4978a4ec96cf4785251da724260069ad5316f0f3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 24 22:51:51 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 24 22:52:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4978a4ec

sys-devel/gcc: fix cross compile patch application

Bug: https://bugs.gentoo.org/803371
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/gcc/gcc-11.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-devel/gcc/gcc-11.2.0.ebuild b/sys-devel/gcc/gcc-11.2.0.ebuild
index 3e6511d8432d..74b45ed7d01b 100644
--- a/sys-devel/gcc/gcc-11.2.0.ebuild
+++ b/sys-devel/gcc/gcc-11.2.0.ebuild
@@ -16,7 +16,7 @@ BDEPEND="${CATEGORY}/binutils"
 src_prepare() {
        toolchain_src_prepare
 
-       if is_crosscompile ; then
+       if tc-is-cross-compiler ; then
                # bug #803371
                eapply "${FILESDIR}"/gcc-11.2.0-cross-compile-include.patch
        fi

Reply via email to