jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link for Darwin.
authorAndreas Tobler <a.tobler@schweiz.ch>
Wed, 16 Mar 2005 21:16:00 +0000 (22:16 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Wed, 16 Mar 2005 21:16:00 +0000 (22:16 +0100)
2005-03-16  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
lgcc_s to the libraries to link for Darwin.

From-SVN: r96579

libjava/ChangeLog
libjava/testsuite/libjava.jni/jni.exp

index 7adeca6e93b1edc877d4159c5a44f175a0c1ff22..4e0ed3e287b69eba0405db2a6e81ba855da547fa 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-16  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
+       lgcc_s to the libraries to link for Darwin.
+
 2005-03-15  Andreas Tobler  <a.tobler@schweiz.ch>
 
        * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Protect
@@ -7,7 +12,7 @@
        (_Jv_StackTrace::non_system_trace_fn): Likewise.
        * include/java-stack.h (struct _Jv_InterpFrameInfo): Protect with
        #ifdef INTERPRETER. Also protect declarations that use it.
-       * java/lang/Class.h: Move _Jv_StackTrace friend declaration outside 
+       * java/lang/Class.h: Move _Jv_StackTrace friend declaration outside
        #ifdef INTERPRETER block.
 
 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
index 989a16448a5ff6c5200dde7876796adf390fcf4b..b2df3126983aa0c4fdc8c620bdc9cbcb143db18f 100644 (file)
@@ -243,8 +243,10 @@ proc gcj_jni_invocation_test_one {file} {
 
   set cfile [file rootname $file].c
   # Darwin needs -liconv linked, otherwise we get some unresolved.
+  # Also, like in the cxxtest we need to add -lgcc_s since Darwin
+  # has no libgcc_s.dylib installed yet.
   if { [istarget "*-*-darwin*"] } {
-      set cxxflags "-L../.libs -lgcj -liconv"
+      set cxxflags "-L../.libs -lgcc_s -lgcj -liconv"
   } else {
       set cxxflags "-L../.libs -lgcj"
   }