From 0a9b8e74d9192e1c1526615c6cb2af4c5288cf0e Mon Sep 17 00:00:00 2001 From: mmitchel Date: Fri, 11 May 2001 16:40:04 +0000 Subject: [PATCH] * lib/objc.exp: Add -lposix4 on Solaris 2.8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_0-branch@41970 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/lib/objc.exp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index 8a9658f57ef..a2a3756f57f 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1992, 1993, 1994, 1996, 1997, 2000 Free Software Foundation, Inc. +# Copyright (C) 1992, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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" -- 2.11.4.GIT