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>
This commit is contained in:
Z. Liu
2025-06-18 21:13:00 +08:00
committed by Sam James
parent a6b8db91d0
commit fec7440bc4
2 changed files with 18 additions and 1 deletions

View File

@@ -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

View File

@@ -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