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]

Testsuite patch: use link options only when necessary



Certain compile options should only be used when linking.  Otherwise
the compiler may complain about linker options not being used, which
in turn causes tests to FAIL.

Ok for trunk and branch?

AG
 

2002-03-17  Anthony Green  <green@redhat.com>

	* lib/libjava.exp: Add the wrapper link options only when we're
	linking.

Index: libjava/testsuite/lib/libjava.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.33
diff -u -p -r1.33 libjava.exp
--- libjava.exp	2002/02/20 04:14:14	1.33
+++ libjava.exp	2002/03/17 16:32:47
@@ -296,14 +296,15 @@ proc libjava_arguments {{mode compile}} 
     global env
     set env(CLASSPATH) ".:$srcdir/$subdir:$objdir:$objdir/../libgcj.jar"
 
-    global wrapper_file wrap_compile_flags;
-    lappend args "additional_flags=$wrap_compile_flags";
-    lappend args "libs=$wrapper_file";
-    lappend args "libs=$libjava";
-    lappend args "libs=$libgc";
-    lappend args "libs=$libqthreads"
-    lappend args "libs=$libz"
-    lappend args debug
+    if {$mode == "link"} {
+        global wrapper_file wrap_compile_flags;
+        lappend args "additional_flags=$wrap_compile_flags";
+        lappend args "libs=$wrapper_file";
+        lappend args "libs=$libjava";
+        lappend args "libs=$libgc";
+        lappend args "libs=$libqthreads"
+        lappend args "libs=$libz"
+    }
 
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
 	lappend args "libs=${gluefile}"


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