This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix PR16923 testsuite failure


Hi,

I committed this patch which fixes the PR16923 testsuite failure introduced by my libjvm.so patch.

Tom

2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>

	* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
	Link against -ljvm, not -lgcj.
Index: testsuite/libjava.jni/jni.exp
===================================================================
--- testsuite/libjava.jni/jni.exp	(revision 114894)
+++ testsuite/libjava.jni/jni.exp	(working copy)
@@ -258,7 +258,7 @@
   # -dylib_file option, but that's complicated, and it's much easier
   # to just make the linker find libgcc using -L options.
   if { [istarget "*-*-darwin*"] } {
-      set cxxflags "-L../.libs -shared-libgcc -lgcj -liconv"
+      set cxxflags "-L../.libs -shared-libgcc -ljvm -liconv"
   } else {
       global LIBJAVA
       if [info exists LIBJAVA] {
@@ -266,7 +266,7 @@
       } else {
 	  set libjava [libjava_find_lib libjava gcj]
       }
-      set cxxflags "$libjava -lgcj"
+      set cxxflags "$libjava -ljvm"
   }
 
   if { [istarget "*-*-solaris*"] } {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]