OSDN Git Service

* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Mar 2005 12:08:28 +0000 (12:08 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Mar 2005 12:08:28 +0000 (12:08 +0000)
libsocket to the libraries to link for Solaris.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97130 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/testsuite/libjava.jni/jni.exp

index 24faa64..01d0f8b 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
+       libsocket to the libraries to link for Solaris.
+
 2005-03-28  Per Bothner  <per@bothner.com>
 
        * boehm.cc (_Jv_MarkObj): Don't follow null pointer to static field,
 
        * java/util/Date.java (parse):  Fix a number of problems.
        (skipParens):  Remove no-longer-needed method.
+
index b2df312..201daac 100644 (file)
@@ -251,6 +251,10 @@ proc gcj_jni_invocation_test_one {file} {
       set cxxflags "-L../.libs -lgcj"
   }
 
+  if { [istarget "*-*-solaris*"] } {
+    lappend cxxflags "-lsocket"
+  }
+
   if {! [gcj_jni_invocation_compile_c_to_binary $cfile $cxxflags]} {
     # FIXME
     return 0