Skip to content

Commit fe836b6

Browse files
committed
Do not link to libquadmath on RISC-V in tests
1 parent f8985d0 commit fe836b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/building.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,17 @@ shards_to_test = expand_cxxstring_abis(expand_gfortran_versions(shards_to_test))
140140
if [[ "${target}" == i686-*-mingw* ]]; then
141141
while which rustc &> /dev/null; do rm $(which rustc); done
142142
fi
143+
144+
FLAGS=()
145+
if [[ "${target}" == riscv*-linux-* ]]; then
146+
# There's currently a bug in the testsuite where we force linking to
147+
# libquadmath on RISC-V. We use this hack to quickly fix it here without
148+
# rebuilding the RootFS.
149+
FLAGS=(CFLDFLAGS="-lgfortran -lm")
150+
fi
151+
143152
# Build testsuite
144-
make -j${nproc} -sC /usr/share/testsuite install
153+
make -j${nproc} -sC /usr/share/testsuite install "${FLAGS[@]}"
145154
# Install fake license just to silence the warning
146155
install_license /usr/share/licenses/libuv/LICENSE
147156
""",

0 commit comments

Comments
 (0)