summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/gcc/gcc-12.2.0-r2.ebuild')
-rw-r--r--sys-devel/gcc/gcc-12.2.0-r2.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-devel/gcc/gcc-12.2.0-r2.ebuild b/sys-devel/gcc/gcc-12.2.0-r2.ebuild
index dc747f7475..d7932fa7ae 100644
--- a/sys-devel/gcc/gcc-12.2.0-r2.ebuild
+++ b/sys-devel/gcc/gcc-12.2.0-r2.ebuild
@@ -86,6 +86,10 @@ src_prepare() {
# situation is tricky and needs careful considerations.
# For now, just disable support for "-stdlib=libc++".
eapply "${FILESDIR}"/gcc-12.2.0-disable-stdlib-option-on-darwin.patch
+
+ # 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
fi
}