This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Testsuite patch: use link options only when necessary
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Sun, 17 Mar 2002 08:37:36 -0800
- Subject: 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}"