From 31362d785ed1db52516dfe02ebe8b163c53d29d0 Mon Sep 17 00:00:00 2001 From: Yuriy Kolerov Date: Thu, 28 Jul 2016 18:48:23 +0300 Subject: [PATCH] ARC: Link tests with pthread library Signed-off-by: Yuriy Kolerov --- testsuite/lib/libffi.exp | 4 ++++ 1 file changed, 4 insertions(+) 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] }