libjava.exp: Add the wrapper link options only when we're linking.
2002-03-27 Anthony Green <green@redhat.com> * lib/libjava.exp: Add the wrapper link options only when we're linking. From-SVN: r51451
This commit is contained in:
parent
6dad5a5631
commit
30cc872274
2 changed files with 15 additions and 8 deletions
|
@ -296,14 +296,16 @@ 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"
|
||||
lappend args debug
|
||||
}
|
||||
|
||||
if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
|
||||
lappend args "libs=${gluefile}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue