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]

[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] {


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