* lib/objc.exp: Add -lposix4 on Solaris 2.8.
authorMark Mitchell <mark@codesourcery.com>
Fri, 11 May 2001 16:20:54 +0000 (16:20 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 11 May 2001 16:20:54 +0000 (16:20 +0000)
From-SVN: r41968

gcc/testsuite/ChangeLog
gcc/testsuite/lib/objc.exp

index 2bcd774917d5beda2f8db5c1a435bdc8cad8d2cc..9e485202e9c7259d34bb7fd0c9d4da8722fe91ba 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-11  Mark Mitchell  <mark@codesourcery.com>
+
+       * lib/objc.exp: Add -lposix4 on Solaris 2.8.
+
 2001-05-10  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.c-torture/compile/20010313-1.c: New test.
index 8a9658f57efb0e39ebe6366f52d39c8e00d7b57d..fa13657f93c5c3674cd745e1fe2d0f1115d65de1 100644 (file)
@@ -122,6 +122,12 @@ proc objc_target_compile { source dest type options } {
     set ld_library_path "."
     lappend options "libs=-lobjc"
 
+    # On Solaris 2.8, we need to include libposix4 inorder to get
+    # sched_get_priority_max and such.
+    if [ishost "sparc-sun-solaris2.8"] {
+       lappend options "libs=-lposix4"
+    }
+
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
        lappend options "libs=${gluefile}"
        lappend options "ldflags=$wrap_flags"