summaryrefslogtreecommitdiff
path: root/dev-lang/micropython
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/micropython')
-rw-r--r--dev-lang/micropython/micropython-1.23.0.ebuild11
-rw-r--r--dev-lang/micropython/micropython-1.25.0.ebuild8
2 files changed, 18 insertions, 1 deletions
diff --git a/dev-lang/micropython/micropython-1.23.0.ebuild b/dev-lang/micropython/micropython-1.23.0.ebuild
index a35b07da8c2f..6d07e5dbd032 100644
--- a/dev-lang/micropython/micropython-1.23.0.ebuild
+++ b/dev-lang/micropython/micropython-1.23.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -26,6 +26,15 @@ PATCHES=(
src_prepare() {
default
+
+ tc-ld-is-mold && {
+ # mold doesn't support --cref, bug #937354
+ find . -name Makefile -exec sed -r \
+ -e 's:map,--cref\s:map :g' \
+ -e 's:\s(-Wl,)?--cref(\s|$): :g' \
+ -i {} + || die
+ }
+
cd ports/unix || die
# 1) don't die on compiler warning
diff --git a/dev-lang/micropython/micropython-1.25.0.ebuild b/dev-lang/micropython/micropython-1.25.0.ebuild
index 21c4593a7694..ad0c5daea652 100644
--- a/dev-lang/micropython/micropython-1.25.0.ebuild
+++ b/dev-lang/micropython/micropython-1.25.0.ebuild
@@ -27,6 +27,14 @@ BDEPEND="
src_prepare() {
default
+ tc-ld-is-mold && {
+ # mold doesn't support --cref, bug #937354
+ find . -name Makefile -exec sed -r \
+ -e 's:map,--cref\s:map :g' \
+ -e 's:\s(-Wl,)?--cref(\s|$): :g' \
+ -i {} + || die
+ }
+
micropython_skip_test() {
local file
for file in "$@" ; do