commit:     6094c57a7d5e771e3b2f51955c4ca801ca9de614
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 16 12:04:34 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jan 16 12:05:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6094c57a

sys-devel/binutils-apple-8.2.1-r103: fix build with GCC-13

do not attempt to force libc++ usage, it doesn't always work

Closes: https://bugs.gentoo.org/922183
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/binutils-apple/binutils-apple-8.2.1-r103.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys-devel/binutils-apple/binutils-apple-8.2.1-r103.ebuild 
b/sys-devel/binutils-apple/binutils-apple-8.2.1-r103.ebuild
index d892d1c763d9..46b656a4b514 100644
--- a/sys-devel/binutils-apple/binutils-apple-8.2.1-r103.ebuild
+++ b/sys-devel/binutils-apple/binutils-apple-8.2.1-r103.ebuild
@@ -25,6 +25,16 @@ BDEPEND=""
 
 S="${WORKDIR}/darwin-xtools-gentoo-${PVR}"
 
+src_prepare() {
+       cmake_src_prepare
+       # kill forced libstd=libc++ usage, breaks with GCC-13 which has
+       # preliminary support for that
+       # check_cxx_compiler_flag(-stdlib=libc++ # XTOOLS_CXX_HAS_STDLIB_FLAG)
+       #
+       sed -i -e '/check_cxx_compiler_flag/s/XTOOLS_CXX_HAS_STDLIB_FLAG/NO_&/' 
\
+               cmake/config-ix.cmake || die
+}
+
 src_configure() {
        CTARGET=${CTARGET:-${CHOST}}
        if [[ ${CTARGET} == ${CHOST} ]] ; then

Reply via email to