We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 810f0f8 commit 331af9fCopy full SHA for 331af9f
docker/musl-symlink.sh
@@ -49,6 +49,19 @@ main() {
49
fi
50
done
51
52
+ # despite using a completely static build, the 32-bit MIPS targets
53
+ # link to libgcc_s, the shared libgcc, erroneously.
54
+ if [[ "${arch}" == "mips-sf" ]] || [[ "${arch}" == "mipsel-sf" ]]; then
55
+ local toolchain=
56
+ local gcc_lib=
57
+ local gcc_ver=
58
+ toolchain=$(basename "${sysroot}")
59
+ gcc_lib="/usr/local/lib/gcc/${toolchain}"
60
+ # shellcheck disable=SC2012
61
+ gcc_ver=$(ls -1 "${gcc_lib}" | head -n 1)
62
+ ln -s "${gcc_lib}/${gcc_ver}/libgcc.a" "${gcc_lib}/${gcc_ver}/libgcc_s.a"
63
+ fi
64
+
65
echo "${sysroot}/lib" >> "/etc/ld-musl-${arch}.path"
66
67
rm -rf "${0}"
0 commit comments