aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-06-23 15:14:36 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-06-23 15:14:36 +0000
commit09dd71fc3e0f5088cc0b3dcebbf55f6f2ae10e96 (patch)
tree272593abb69398259cbe90876963b33cf549a194 /libjava/testsuite/lib
parent2f9fb4c226e96e73d87ebeab0dc43fa2711296db (diff)
downloadgcc-09dd71fc3e0f5088cc0b3dcebbf55f6f2ae10e96.zip
gcc-09dd71fc3e0f5088cc0b3dcebbf55f6f2ae10e96.tar.gz
gcc-09dd71fc3e0f5088cc0b3dcebbf55f6f2ae10e96.tar.bz2
* lib/libjava.exp (libjava_arguments): Handle -lzgcj.
From-SVN: r27721
Diffstat (limited to 'libjava/testsuite/lib')
-rw-r--r--libjava/testsuite/lib/libjava.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp
index fad6175..88691a86 100644
--- a/libjava/testsuite/lib/libjava.exp
+++ b/libjava/testsuite/lib/libjava.exp
@@ -111,6 +111,8 @@ proc libjava_arguments {{mode compile}} {
global base_dir
global LIBJAVA
global LIBGC
+ global LIBQTHREADS
+ global LIBZ
global srcdir subdir objdir
global TOOL_OPTIONS
global GCJ_UNDER_TEST
@@ -135,6 +137,12 @@ proc libjava_arguments {{mode compile}} {
set libqthreads [libjava_find_lib qthreads gcjcoop]
}
+ if [info exists LIBZ] {
+ set libz $LIBZ
+ } else {
+ set libz [libjava_find_lib zlib zgcj]
+ }
+
# FIXME: there's no way to determine whether -lpthread is
# required. We should get this info from configure, or it should
# just be in the compiler driver.
@@ -142,6 +150,7 @@ proc libjava_arguments {{mode compile}} {
verbose "using LIBJAVA = $libjava" 2
verbose "using LIBGC = $libgc" 2
verbose "using LIBQTHREADS = $libqthreads" 2
+ verbose "using LIBZ = $libz" 2
set args ""
# Basically we want to build up a colon separated path list from
@@ -178,6 +187,7 @@ proc libjava_arguments {{mode compile}} {
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] } {