jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link for Darwin.

2005-03-16  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
	lgcc_s to the libraries to link for Darwin.

From-SVN: r96579
This commit is contained in:
Andreas Tobler
2005-03-16 22:16:00 +01:00
committed by Andreas Tobler
parent b2df20b404
commit 930c1fc2a0
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -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"
}