jni.exp (gcj_jni_invocation_test_one): Add libsocket to the libraries to link for...
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 28 Mar 2005 12:08:28 +0000 (14:08 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 28 Mar 2005 12:08:28 +0000 (12:08 +0000)
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
libsocket to the libraries to link for Solaris.

From-SVN: r97130

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

index 24faa64a22da31274723272f7999025045d63b13..01d0f8b1ab1b01134e9923930ef1d22630444480 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 b2df3126983aa0c4fdc8c620bdc9cbcb143db18f..201daaca71336600cefd147a733a27d624ffd250 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