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>
Sun, 13 Mar 2022 11:41:41 +0000 (11:41 +0000)
Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

configure.ac

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