* lib/objc.exp: Add -lposix4 on Solaris 2.6 and Solaris 2.7.
authorMark Mitchell <mark@codesourcery.com>
Mon, 14 May 2001 07:49:11 +0000 (07:49 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 14 May 2001 07:49:11 +0000 (07:49 +0000)
From-SVN: r42065

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

index 6c1d501a0ab6e17fcc4577e9932020991cf1fd62..416219803a5aa6d5c5ca792c8dffdbf5e4a75fe7 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-14  Mark Mitchell  <mark@codesourcery.com>
+
+       * lib/objc.exp: Add -lposix4 on Solaris 2.6 and Solaris 2.7.
+
 2001-05-13  Benjamin Kosnik  <bkoz@redhat.com>
 
        * lib/g++.exp: Use testsuite_flags.
index fa13657f93c5c3674cd745e1fe2d0f1115d65de1..ebe7a47e064f162c7383ed31df87b0da2d23f24f 100644 (file)
@@ -122,9 +122,9 @@ 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
+    # On Solaris 2.8, we need to include libposix4 in order to get
     # sched_get_priority_max and such.
-    if [ishost "sparc-sun-solaris2.8"] {
+    if [istarget {sparc-sun-solaris2.[678]} ] {
        lappend options "libs=-lposix4"
     }