This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] PR33326 fix testsuite failures on non linux targets
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 07 Sep 2007 20:57:53 +0200
- Subject: [patch] PR33326 fix testsuite failures on non linux targets
Hello all,
the below patch fixes the testsuite failures on non linux targets like
darwin, sparc-solaris or hpux. Their ld does not like the -rpath
argument which is passed via libgcj-test.spec.
I tested on the above targets plus on ppc and i686 linux.
Btw, it fixes PR33326 :)
Ok ?
Thanks,
Andreas
2007-09-07 Andreas Tobler <a.tobler@schweiz.org>
PR libgcj/33326
* testsuite/lib/libjava.exp (libjava_arguments): Append the test spec
only for linux targets.
Index: testsuite/lib/libjava.exp
===================================================================
--- testsuite/lib/libjava.exp (revision 128180)
+++ testsuite/lib/libjava.exp (working copy)
@@ -379,7 +379,11 @@
if {$mode == "link"} {
global wrapper_file wrap_compile_flags
lappend args "additional_flags=$wrap_compile_flags"
- lappend args "additional_flags=-specs=libgcj-test.spec"
+
+ if { [string match "linux" $target_triplet] } {
+ lappend args "additional_flags=-specs=libgcj-test.spec"
+ }
+
lappend args "libs=$wrapper_file"
lappend args "libs=$libjava"
lappend args debug