This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] jni testsuite darwin specific
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 05 Dec 2007 22:05:57 +0100
- Subject: [patch] jni testsuite darwin specific
Hi all,
the patch below makes the testsuite recognize the right library path
when compiled for multilib under darwin.
ok for trunk?
Thanks,
Andreas
2007-12-05 Andreas Tobler <a.tobler@schweiz.org>
* testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Make
the testsuite multilib aware for Darwin.
Index: testsuite/libjava.jni/jni.exp
===================================================================
--- testsuite/libjava.jni/jni.exp (revision 130561)
+++ testsuite/libjava.jni/jni.exp (working copy)
@@ -249,7 +249,8 @@
# 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 -lgcj -liconv"
+ set libjava [libjava_find_lib libjava gcj]
+ set cxxflags "$libjava -shared-libgcc -ljvm -lgcj -liconv"
} else {
global LIBJAVA
if [info exists LIBJAVA] {