Re: [patch] libjava testsuite

2015-05-26 Thread Andrew Haley
On 05/25/2015 08:29 PM, Andreas Tobler wrote:
> Ok for trunk?

OK, thanks.

Andrew.



[patch] libjava testsuite

2015-05-25 Thread Andreas Tobler

Hi all,

the below patch fixes the PR16923.c test case on FreeBSD (amd64/i386).

Ok for trunk?

Thanks,
Andreas

2015-05-25  Andreas Tobler  

* testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Add
libiconv for FreeBSD to cxxflags.

Index: testsuite/libjava.jni/jni.exp
===
--- testsuite/libjava.jni/jni.exp   (revision 223651)
+++ testsuite/libjava.jni/jni.exp   (working copy)
@@ -274,6 +274,11 @@
 eval lappend cxxflags "-shared-libgcc -lgcj $libiconv"
   }

+  # FreeBSD needs -liconv linked, otherwise we get some unresolved.
+  if { [istarget "*-*-freebsd*"] } {
+eval lappend cxxflags "$libiconv"
+  }
+
   # Make sure libgcc unwinder is used on 64-bit Solaris 10+/x86 rather 
than

   # the libc one.
   if { [istarget "*-*-solaris*"] } {