commit:     296f14a222a1cb690b376b2e4617d95250d1602c
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 20 18:58:29 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Apr 20 18:59:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=296f14a2

dev-ml/core_unix: don't use gcc directly

Closes: https://bugs.gentoo.org/892469
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/core_unix/core_unix-0.15.2-r1.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild 
b/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild
index c543a96d0275..afbc6c1676e2 100644
--- a/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild
+++ b/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit dune
+inherit dune toolchain-funcs
 
 DESCRIPTION="Unix-specific portions of Core"
 HOMEPAGE="https://github.com/janestreet/core_unix";
@@ -25,3 +25,12 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 BDEPEND=""
+
+src_prepare() {
+       sed -i \
+               -e "s:gcc:$(tc-getCC):" \
+               unix_pseudo_terminal/src/discover.sh \
+               || die
+
+       default
+}

Reply via email to