summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-26 11:41:48 -0400
committerAnthony Green <green@moxielogic.com>2022-09-26 11:42:56 -0400
commita1467200c36ce80dacb8d9d0d50049765809b6f4 (patch)
tree7116f68d1dae59458b7438d639a83627aeb17854 /testsuite
parent5ce26a0e03eacb483709189e8cbb05509fa68612 (diff)
downloadlibffi-a1467200c36ce80dacb8d9d0d50049765809b6f4.tar.gz
Never link pthread for android
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/lib/libffi.exp27
1 files changed, 15 insertions, 12 deletions
diff --git a/testsuite/lib/libffi.exp b/testsuite/lib/libffi.exp
index d21e4e5..7457af4 100644
--- a/testsuite/lib/libffi.exp
+++ b/testsuite/lib/libffi.exp
@@ -397,20 +397,23 @@ proc libffi_target_compile { source dest type options } {
lappend options "libs= -lffi"
- if { [string match "aarch64*-*-linux*" $target_triplet] } {
- lappend options "libs= -lpthread"
- }
+ if { ![string match "*android*" $target_triplet] } {
- # this may be required for g++, but just confused clang.
- if { [string match "*.cc" $source] } {
- lappend options "c++"
- if { [string match "*-*-darwin*" $target_triplet] } {
- lappend options "libs= -lc++"
- }
- }
+ if { [string match "aarch64*-*-linux*" $target_triplet] } {
+ lappend options "libs= -lpthread"
+ }
- if { [string match "arc*-*-linux*" $target_triplet] } {
- lappend options "libs= -lpthread"
+ # this may be required for g++, but just confused clang.
+ if { [string match "*.cc" $source] } {
+ lappend options "c++"
+ if { [string match "*-*-darwin*" $target_triplet] } {
+ lappend options "libs= -lc++"
+ }
+ }
+
+ if { [string match "arc*-*-linux*" $target_triplet] } {
+ lappend options "libs= -lpthread"
+ }
}
verbose "options: $options"