jni.exp (gcj_jni_invocation_test_one): Use libjava_find_lib to find the proper libgcj.

2005-09-17  H.J. Lu  <hongjiu.lu@intel.com>

	* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
	Use libjava_find_lib to find the proper libgcj.

From-SVN: r104370
This commit is contained in:
H.J. Lu 2005-09-17 18:12:43 +00:00 committed by H.J. Lu
parent 69fcfd68ce
commit 3fb90446b4
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-09-17 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
Use libjava_find_lib to find the proper libgcj.
2005-09-16 Anthony Green <green@redhat.com>
PR libgcj/20198

View File

@ -248,7 +248,13 @@ proc gcj_jni_invocation_test_one {file} {
if { [istarget "*-*-darwin*"] } {
set cxxflags "-L../.libs -lgcc_s -lgcj -liconv"
} else {
set cxxflags "-L../.libs -lgcj"
global LIBJAVA
if [info exists LIBJAVA] {
set libjava $LIBJAVA;
} else {
set libjava [libjava_find_lib libjava gcj]
}
set cxxflags "$libjava -lgcj"
}
if { [istarget "*-*-solaris*"] } {