This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix Objective C tests on Solaris 2.[67]
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Fix Objective C tests on Solaris 2.[67]
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 14 May 2001 00:53:29 -0700
- Organization: CodeSourcery, LLC
This adds the -lposix4 option on Solaris 2.6 and Solaris 2.7 as well.
Tested on Solaris 2.8. I do not have access to 2.6 and 2.7 systems,
but I am told the patch is needed there.
Applied on the mainline and on the branch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2001-05-14 Mark Mitchell <mark@codesourcery.com>
* lib/objc.exp: Add -lposix4 on Solaris 2.6 and Solaris 2.7.
Index: gcc/testsuite/lib/objc.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/objc.exp,v
retrieving revision 1.5.6.1
diff -c -p -r1.5.6.1 objc.exp
*** objc.exp 2001/05/11 16:40:04 1.5.6.1
--- objc.exp 2001/05/14 07:01:11
*************** proc objc_target_compile { source dest t
*** 122,130 ****
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"
}
--- 122,130 ----
set ld_library_path "."
lappend options "libs=-lobjc"
! # On Solaris 2.8, we need to include libposix4 in order to get
# sched_get_priority_max and such.
! if [istarget {sparc-sun-solaris2.[678]} ] {
lappend options "libs=-lposix4"
}