aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@gcc.gnu.org>2006-05-06 22:57:18 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2006-05-06 22:57:18 +0200
commitb3638b64c3645bd3bd5dbf0e9d826557a14e1e82 (patch)
treeb821e5243a831b6ef7260527ae9d32f5892eceb2
parented1a08a75981e44e3fe6ac91f18a9b4900bbb43d (diff)
downloadgcc-b3638b64c3645bd3bd5dbf0e9d826557a14e1e82.zip
gcc-b3638b64c3645bd3bd5dbf0e9d826557a14e1e82.tar.gz
gcc-b3638b64c3645bd3bd5dbf0e9d826557a14e1e82.tar.bz2
jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate extension for shared libraries, sl.
2006-05-06 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate extension for shared libraries, sl. (gcj_jni_test_one): Likewise. * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared library extensions. From-SVN: r113587
-rw-r--r--libjava/ChangeLog13
-rw-r--r--libjava/testsuite/lib/libjava.exp4
-rw-r--r--libjava/testsuite/libjava.jni/jni.exp15
3 files changed, 24 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index d0992f6..e961817 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,12 @@
+2006-05-06 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
+ HP-UX and add appropriate extension for shared libraries, sl.
+ (gcj_jni_test_one): Likewise.
+
+ * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
+ library extensions.
+
2006-05-05 Tom Tromey <tromey@redhat.com>
PR libgcj/27294:
@@ -10,7 +19,7 @@
* java/lang/Class.java (getClassLoader(Class)): New.
forName(String, Class): New.
* java/lang/natClass.cc (getClassLoader(Class)): New.
-
+
2006-05-02 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_NewMultiArray): Check for phantom class.
@@ -73,7 +82,7 @@
NullPointerException every time.
* include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
field.
- * include/execution.h (resolve_method): Remove vtable_index argument.
+ * include/execution.h (resolve_method): Remove vtable_index argument.
2006-04-28 Andreas Tobler <a.tobler@schweiz.ch>
diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp
index 0094579..fa9c044 100644
--- a/libjava/testsuite/lib/libjava.exp
+++ b/libjava/testsuite/lib/libjava.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
+# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software Foundation
proc load_gcc_lib { filename } {
global srcdir
@@ -242,7 +242,7 @@ proc libjava_init { args } {
proc libjava_find_lib {dir name} {
global base_dir
set gp [get_multilibs]
- foreach extension {so dll dylib a} {
+ foreach extension {so dll dylib sl a} {
foreach sub {.libs _libs} {
if {$gp != ""} {
if {[file exists $gp/$dir/$sub/lib${name}.${extension}]} then {
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp
index 1810668..6cd677d 100644
--- a/libjava/testsuite/libjava.jni/jni.exp
+++ b/libjava/testsuite/libjava.jni/jni.exp
@@ -10,13 +10,17 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
set options_cxx $options
set options ""
-# apple uses a different extension for shared/dynamic libraries
+# Apple uses a different extension for shared/dynamic libraries
# so we check against powerpc-apple-darwin and set them to
-# dylib, else we assume it's .so
+# dylib.
+# HP-UX uses sl, so we check this too, otherwise we take so.
if { [istarget "*-*-darwin*"] } {
set so_extension "dylib"
set so_flag "-dynamiclib"
+ } elseif { [istarget "hppa*-hp-hpux*"] } {
+ set so_extension "sl"
+ set so_flag "-shared"
} else {
set so_extension "so"
set so_flag "-shared"
@@ -76,12 +80,15 @@ proc gcj_jni_test_one {file} {
global host_triplet
global INTERPRETER
-# apple uses a different extension for shared/dynamic libraries
+# Apple uses a different extension for shared/dynamic libraries
# so we check against powerpc-apple-darwin and set them to
-# dylib, else we assume it's .so
+# dylib.
+# HP-UX uses sl, so we check this too, otherwise we take so.
if { [istarget "*-*-darwin*"] } {
set so_extension "dylib"
+ } elseif { [istarget "hppa*-hp-hpux*"] } {
+ set so_extension "sl"
} else {
set so_extension "so"
}