configure: fix linking on RISC-V ISA
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jun 2018 18:31:45 +0000 (21:31 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 22 Sep 2020 21:11:26 +0000 (22:11 +0100)
Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

configure.ac

index 1f74566008cde91c4a12b0a328f36e85b9a4ddf3..a8d7ad6caf24f45799fab4bb694994cb3ecd234a 100644 (file)
@@ -113,6 +113,7 @@ case "${host_os}" in
     ;;
   linux*)
     SYS=linux
+    test "${host_cpu}" = "riscv64" && CFLAGS="${CFLAGS} -pthread"
     ;;
   bsdi*)
     SYS=bsdi