]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jni.exp (gcj_jni_invocation_test_one): Pass -lgcj to linker for C++ files on Darwin.
authorGeoffrey Keating <geoffk@apple.com>
Fri, 1 Sep 2006 19:52:10 +0000 (19:52 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 1 Sep 2006 19:52:10 +0000 (19:52 +0000)
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
Pass -lgcj to linker for C++ files on Darwin.

From-SVN: r116639

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

index b19398e24196b7eef3c47765d1b1606a8080a578..9a949d0d09134971c72f4da5150b24ff51ed812f 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-01  Geoffrey Keating  <geoffk@apple.com>
+
+       * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
+       Pass -lgcj to linker for C++ files on Darwin.
+
 2006-09-01  Keith Seitz  <keiths@redhat.com>
 
        * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.
index 0ed8a5aaba289f7c9baea51d8bbf12690812f282..317c5ae57e51046b73fd47fa92bb5d2f95163119 100644 (file)
@@ -257,8 +257,9 @@ proc gcj_jni_invocation_test_one {file} {
   # find the libgcc used by libffi.dylib.  We could pass the
   # -dylib_file option, but that's complicated, and it's much easier
   # to just make the linker find libgcc using -L options.
+  # Similar logic applies to libgcj.
   if { [istarget "*-*-darwin*"] } {
-      set cxxflags "-L../.libs -shared-libgcc -ljvm -liconv"
+      set cxxflags "-L../.libs -shared-libgcc -ljvm -lgcj -liconv"
   } else {
       global LIBJAVA
       if [info exists LIBJAVA] {