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, 21 Jun 2021 19:07:16 +0000 (20:07 +0100)
Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

configure.ac

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