summaryrefslogtreecommitdiff
path: root/libffi/testsuite
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2010-01-01 12:32:24 +0000
committerAnthony Green <green@gcc.gnu.org>2010-01-01 12:32:24 +0000
commitcb14fcb8788b639e1fe718a81bb4109230ad6d77 (patch)
treea1b563fc352abf39f53cdea118e5914385c8cb71 /libffi/testsuite
parent1098bcf8122c23910806d651d52951658667e574 (diff)
Add openbsd support.
From-SVN: r155549
Diffstat (limited to 'libffi/testsuite')
-rw-r--r--libffi/testsuite/lib/libffi-dg.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp
index 8db38c286a8..bd5a7c84f48 100644
--- a/libffi/testsuite/lib/libffi-dg.exp
+++ b/libffi/testsuite/lib/libffi-dg.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -203,6 +203,10 @@ proc libffi_target_compile { source dest type options } {
lappend options "libs= -shared-libgcc"
}
+ if { [string match "*-*-openbsd*" $target_triplet] } {
+ lappend options "libs= -lpthread"
+ }
+
lappend options "libs= -lffi"
verbose "options: $options"