From 9e6c3ecb961a23bbb00692d957c85ce269eec7df Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Thu, 20 Nov 2003 16:19:09 +0100 Subject: [PATCH] libffi-dg.exp: Make the -lgcc_s conditional. 2003-11-20 Andreas Tobler * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional. From-SVN: r73763 --- libffi/ChangeLog | 4 ++++ libffi/testsuite/lib/libffi-dg.exp | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 45df2a8b3a06..97d43ccd36d9 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,7 @@ +2003-11-20 Andreas Tobler + + * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional. + 2003-11-19 Andreas Tobler * testsuite/lib/libffi-dg.exp: Add DYLD_LIBRARY_PATH for darwin. diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp index 12ebb4bc13a0..87e285af893f 100644 --- a/libffi/testsuite/lib/libffi-dg.exp +++ b/libffi/testsuite/lib/libffi-dg.exp @@ -164,7 +164,12 @@ proc libffi_target_compile { source dest type options } { # search for ffi_mips.h in srcdir, too lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include" lappend options "additional_flags=${libffi_link_flags}" - lappend options "libs= -lffi -lgcc_s" + + if { [string match "powerpc-*-darwin*" $target_triplet] } { + lappend options "libs= -lgcc_s" + } + + lappend options "libs= -lffi" verbose "options: $options" return [target_compile $source $dest $type $options]