AArch64 port
[platform/upstream/libffi.git] / testsuite / lib / libffi.exp
index 4a65ed1..8ee3f15 100644 (file)
@@ -203,6 +203,10 @@ proc libffi_target_compile { source dest type options } {
 
     lappend options "libs= -lffi"
 
+    if { [string match "aarch64*-*-linux*" $target_triplet] } {
+       lappend options "libs= -lpthread"
+    }
+
     verbose "options: $options"
     return [target_compile $source $dest $type $options]
 }