diff options
Diffstat (limited to 'libffi/testsuite/lib/libffi-dg.exp')
-rw-r--r-- | libffi/testsuite/lib/libffi-dg.exp | 6 |
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" |