This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] testsuite fix for Darwin pr16923
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Sat, 12 Mar 2005 17:34:26 +0100
- Subject: [patch] testsuite fix for Darwin pr16923
hello,
hopefully I have it now. I missed that I have had a gcc installed. So
lgcj was looking for an installed lgcc_s. But Darwin does not have
libgcc_s.dylib installed yet. In the forthcoming OS there will be one.
For now adding a lgcc_s helps to build and run the pr16923 on Darwin.
Ok?
And again, sorry that I did not saw it in the first turn.
Andreas
2005-03-12 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.
Index: testsuite/libjava.jni/jni.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.jni/jni.exp,v
retrieving revision 1.20
diff -u -r1.20 jni.exp
--- testsuite/libjava.jni/jni.exp 11 Mar 2005 21:33:56 -0000 1.20
+++ testsuite/libjava.jni/jni.exp 12 Mar 2005 16:31:19 -0000
@@ -243,8 +243,10 @@
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"
}