summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-20 15:19:09 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-20 15:19:09 +0000
commit71e96ac5655cd6b77c1b1abf0ae487d846170cd6 (patch)
tree12fca61af673e3642c2d3cf09a1cfb874a9e0c3d /libffi
parentffc9d00c79adc92bd0ba09228f3855d485174fdb (diff)
downloadgcc-71e96ac5655cd6b77c1b1abf0ae487d846170cd6.tar.gz
2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog4
-rw-r--r--libffi/testsuite/lib/libffi-dg.exp7
2 files changed, 10 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 45df2a8b3a0..97d43ccd36d 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,7 @@
+2003-11-20 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.
+
2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
* 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 12ebb4bc13a..87e285af893 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]