[patch] libjava testsuite
Andreas Tobler
andreast-list@fgznet.ch
Mon May 25 19:40:00 GMT 2015
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*"] } {
More information about the Gcc-patches
mailing list