summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Green <green@gmachine.(none)>2009-12-26 10:05:18 -0500
committerAnthony Green <green@gmachine.(none)>2009-12-26 10:05:18 -0500
commit01c78756aff22efb1f122f8e93e068d7bf2185c7 (patch)
treefa367312a0884614d8f98f219a585b4af2f566d3 /testsuite
parent70868464651320268d79c6894db5a50fdc11032a (diff)
downloadlibffi-01c78756aff22efb1f122f8e93e068d7bf2185c7.tar.gz
3.0.9rc9
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/lib/libffi-dg.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/lib/libffi-dg.exp b/testsuite/lib/libffi-dg.exp
index 2f5e2f5..304d2f5 100644
--- a/testsuite/lib/libffi-dg.exp
+++ b/testsuite/lib/libffi-dg.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2008, 2009 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
@@ -197,6 +197,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"