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>
Mon, 10 Oct 2022 06:44:18 +0000 (07:44 +0100)
Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

configure.ac

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