diff options
Diffstat (limited to 'libjava/testsuite/libjava.jni/jni.exp')
| -rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index 989a16448a5..b2df3126983 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -243,8 +243,10 @@ proc gcj_jni_invocation_test_one {file} { set cfile [file rootname $file].c # Darwin needs -liconv linked, otherwise we get some unresolved. + # Also, like in the cxxtest we need to add -lgcc_s since Darwin + # has no libgcc_s.dylib installed yet. if { [istarget "*-*-darwin*"] } { - set cxxflags "-L../.libs -lgcj -liconv" + set cxxflags "-L../.libs -lgcc_s -lgcj -liconv" } else { set cxxflags "-L../.libs -lgcj" } |

