mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user