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>
Thu, 23 Jun 2022 08:39:09 +0000 (09:39 +0100)
Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

configure.ac

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