commit:     e3da80a66251be27fac1adb02b1aec991827fb4d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon May 27 01:24:32 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon May 27 01:24:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e3da80a6

sys-devel/gcc-13.3.0: fix ld64/xtools detection fix

update for updated checks, fixes compiling on {x64,ppc}-macos

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/gcc/gcc-13.3.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc/gcc-13.3.0.ebuild b/sys-devel/gcc/gcc-13.3.0.ebuild
index 5004a9daf0..eb8200a374 100644
--- a/sys-devel/gcc/gcc-13.3.0.ebuild
+++ b/sys-devel/gcc/gcc-13.3.0.ebuild
@@ -97,7 +97,8 @@ src_prepare() {
 
                # our ld64 is a slight bit different, so tweak expression to not
                # get confused and break the build
-               sed -i -e 's/grep ld64/grep :ld64/' gcc/configure || die
+               sed -i -e "s/EGREP 'ld64|dyld'/& | head -n1/" \
+                       gcc/configure{.ac,} || die
 
                # rip out specific macos version min
                sed -i -e 's/-mmacosx-version-min=11.0//' \

Reply via email to