[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

mrs at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 21 19:00:00 GMT 2010



------- Comment #3 from mrs at gcc dot gnu dot org  2010-04-21 19:00 -------
Nasty hack around:

Index: testsuite/libjava.jni/jni.exp
===================================================================
--- testsuite/libjava.jni/jni.exp       (revision 157698)
+++ testsuite/libjava.jni/jni.exp       (working copy)
@@ -267,7 +267,7 @@
   # to just make the linker find libgcc using -L options.
   # Similar logic applies to libgcj.
   if { [istarget "*-*-darwin*"] } {
-    lappend cxxflags -shared-libgcc -lgcj -liconv
+    lappend cxxflags -shared-libgcc -lgcj -L/opt/local/lib -liconv
   }

   if { [istarget "*-*-solaris*"] } {

seems to fix this issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839



More information about the Java-prs mailing list