diff options
author | Andreas Tobler <a.tobler@schweiz.org> | 2010-01-01 12:32:24 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2010-01-01 12:32:24 +0000 |
commit | cb14fcb8788b639e1fe718a81bb4109230ad6d77 (patch) | |
tree | a1b563fc352abf39f53cdea118e5914385c8cb71 /libffi/testsuite | |
parent | 1098bcf8122c23910806d651d52951658667e574 (diff) | |
download | gcc-cb14fcb8788b639e1fe718a81bb4109230ad6d77.zip gcc-cb14fcb8788b639e1fe718a81bb4109230ad6d77.tar.gz gcc-cb14fcb8788b639e1fe718a81bb4109230ad6d77.tar.bz2 |
Add openbsd support.
From-SVN: r155549
Diffstat (limited to 'libffi/testsuite')
-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 8db38c2..bd5a7c8 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" |