diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-06 19:23:05 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-06 19:23:05 +0000 |
commit | 75f7b21567d8c366482b35a957d860f9b1c2c3e0 (patch) | |
tree | 791c88a01547ee0160bc73866a7bd6b958a88b68 /libjava/testsuite | |
parent | 64cb8c905885e84ec221a614d99c163d8978039a (diff) | |
download | gcc-75f7b21567d8c366482b35a957d860f9b1c2c3e0.tar.gz |
2007-12-06 Andreas Tobler <a.tobler@schweiz.org>
* testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Make
the testsuite multilib aware for Darwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index 623597c36e9..4ed27cdf0d1 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -241,6 +241,14 @@ proc gcj_jni_invocation_compile_c_to_binary {file {options {}}} { } proc gcj_jni_get_cxxflags_invocation {} { + global LIBJAVA + if [info exists LIBJAVA] { + set libjava $LIBJAVA; + } else { + set libjava [libjava_find_lib libjava gcj] + } + set cxxflags "$libjava -ljvm" + # Darwin needs -liconv linked, otherwise we get some unresolved. # If you're building the compiler with --prefix set to a place # where it's not yet installed, then the linker won't be able to @@ -249,15 +257,7 @@ proc gcj_jni_get_cxxflags_invocation {} { # 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" - } else { - global LIBJAVA - if [info exists LIBJAVA] { - set libjava $LIBJAVA; - } else { - set libjava [libjava_find_lib libjava gcj] - } - set cxxflags "$libjava -ljvm" + lappend cxxflags -shared-libgcc -lgcj -liconv } if { [istarget "*-*-solaris*"] } { |