This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] libjava testsuite
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Java Patches <java-patches at gcc dot gnu dot org>
- Date: Mon, 25 May 2015 21:29:50 +0200
- Subject: [patch] libjava testsuite
- Authentication-results: sourceware.org; auth=none
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 <andreast@gcc.gnu.org>
* 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*"] } {