ARC: Link tests with pthread library Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
diff --git a/testsuite/lib/libffi.exp b/testsuite/lib/libffi.exp
index afc421b..de91e3b 100644
--- a/testsuite/lib/libffi.exp
+++ b/testsuite/lib/libffi.exp
@@ -219,6 +219,10 @@ proc libffi_target_compile { source dest type options } {
lappend options "c++"
}
+ if { [string match "arc*-*-linux*" $target_triplet] } {
+ lappend options "libs= -lpthread"
+ }
+
verbose "options: $options"
return [target_compile $source $dest $type $options]
}