diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2003-11-20 16:19:09 +0100 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2003-11-20 16:19:09 +0100 |
commit | 9e6c3ecb961a23bbb00692d957c85ce269eec7df (patch) | |
tree | 12fca61af673e3642c2d3cf09a1cfb874a9e0c3d /libffi/testsuite | |
parent | a72d4945d39e4386f107787cfd78e8d681f53c14 (diff) | |
download | gcc-9e6c3ecb961a23bbb00692d957c85ce269eec7df.zip gcc-9e6c3ecb961a23bbb00692d957c85ce269eec7df.tar.gz gcc-9e6c3ecb961a23bbb00692d957c85ce269eec7df.tar.bz2 |
libffi-dg.exp: Make the -lgcc_s conditional.
2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
From-SVN: r73763
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/lib/libffi-dg.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp index 12ebb4b..87e285a 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] |