From 11a3bd3e1ba8acd681157094a93a90c891373693 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 31 Mar 2024 17:21:57 +0800 Subject: [PATCH] Force ld.gold for armv7 --- .github/workflows/cross.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cross.yaml b/.github/workflows/cross.yaml index d5e8d2e6..33044509 100644 --- a/.github/workflows/cross.yaml +++ b/.github/workflows/cross.yaml @@ -94,6 +94,13 @@ jobs: sudo dpkg --add-architecture armhf sudo apt-get update -y sudo apt-get install -y libncurses-dev:armhf + # ld.bfd is broken on armv7: https://sourceware.org/bugzilla/show_bug.cgi?id=16177 + update-alternatives --install "/usr/bin/x86_64-linux-gnu-ld" "ld" "/usr/bin/x86_64-linux-gnu-ld.gold" 20 + update-alternatives --install "/usr/bin/x86_64-linux-gnu-ld" "ld" "/usr/bin/x86_64-linux-gnu-ld.bfd" 10 + update-alternatives --set "ld" "/usr/bin/x86_64-linux-gnu-ld.gold" + update-alternatives --install "/usr/bin/arm-linux-gnueabihf-ld" "ld-arm" "/usr/bin/arm-linux-gnueabihf-ld.gold" 20 + update-alternatives --install "/usr/bin/arm-linux-gnueabihf-ld" "ld-arm" "/usr/bin/arm-linux-gnueabihf-ld.bfd" 10 + update-alternatives --set "ld-arm" "/usr/bin/arm-linux-gnueabihf-ld.gold" sh .github/scripts/cross.sh test-cross-js: