]> gcc.gnu.org Git - gcc.git/commitdiff
libffi-dg.exp: Make the -lgcc_s conditional.
authorAndreas Tobler <a.tobler@schweiz.ch>
Thu, 20 Nov 2003 15:19:09 +0000 (16:19 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Thu, 20 Nov 2003 15:19:09 +0000 (16:19 +0100)
2003-11-20  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/lib/libffi-dg.exp: Make the -lgcc_s conditional.

From-SVN: r73763

libffi/ChangeLog
libffi/testsuite/lib/libffi-dg.exp

index 45df2a8b3a060800e960f35cc6876bd0d4004eb5..97d43ccd36d914f21b1373a5df93039c4b1542ec 100644 (file)
@@ -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.
index 12ebb4bc13a0c62d1065d588deaf853ab49b82df..87e285af893f69c037b718a799d26b054a2e8601 100644 (file)
@@ -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]
This page took 0.072506 seconds and 5 git commands to generate.