[patch] libjava testsuite
Andreas Tobler <[email protected]> Mon, 25 May 2015 21:29:50 +0200
| Newsgroups | gmane.comp.gcc.patches,gmane.comp.gcc.java.patches |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> * 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*"] } {