This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Fix Objective C tests on Solaris 2.[67]



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"
      }
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]