summaryrefslogtreecommitdiff
path: root/dev-lang/micropython/micropython-1.25.0.ebuild
diff options
context:
space:
mode:
authorZ. Liu <zhixu.liu@gmail.com>2025-06-18 21:13:00 +0800
committerSam James <sam@gentoo.org>2025-06-22 10:46:37 +0100
commitfec7440bc405a099f3e5e0efef019f1773760db7 (patch)
tree71e52c9d5d245a1a46fa9117d5a0efddbc6137e4 /dev-lang/micropython/micropython-1.25.0.ebuild
parenta6b8db91d0d358d9713a5d398dea3808dbfd999d (diff)
downloadgentoo-fec7440bc405a099f3e5e0efef019f1773760db7.tar.gz
gentoo-fec7440bc405a099f3e5e0efef019f1773760db7.tar.bz2
gentoo-fec7440bc405a099f3e5e0efef019f1773760db7.zip
dev-lang/micropython: fix build issue using mold
remove link option "--cref" because mold doesn't support not all files were patched, but the compilation & tests succeeded. Closes: https://bugs.gentoo.org/937354 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42654 Closes: https://github.com/gentoo/gentoo/pull/42654 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/micropython/micropython-1.25.0.ebuild')
-rw-r--r--dev-lang/micropython/micropython-1.25.0.ebuild8
1 files changed, 8 insertions, 0 deletions
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