This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]