summaryrefslogtreecommitdiff
path: root/dev-lang/micropython/micropython-1.25.0.ebuild
diff options
context:
space:
mode:
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