OSDN Git Service

gcc/testsuite:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / lib / objc.exp
index fc8fac1..c3de61e 100644 (file)
@@ -124,12 +124,6 @@ proc objc_target_compile { source dest type options } {
     set ld_library_path ".:${rootme}"
     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"
-    }
-
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
        lappend options "libs=${gluefile}"
        lappend options "ldflags=$wrap_flags"
@@ -243,6 +237,20 @@ if { [info procs prune_warnings] == "" } then {
     }
 }
 
+# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
+# called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
+# (for the 64-bit ABI).  The right way to do this would be to modify
+# unix.exp -- but that's not an option since it's part of DejaGNU
+# proper, so we do it here, by trickery.  We really only need to do 
+# this on IRIX, but it shouldn't hurt to do it anywhere else.
+
+proc ${tool}_set_ld_library_path { name element op } {
+  setenv LD_LIBRARYN32_PATH [getenv LD_LIBRARY_PATH]
+  setenv LD_LIBRARY64_PATH [getenv LD_LIBRARY_PATH]
+}
+
+trace variable env(LD_LIBRARY_PATH) w ${tool}_set_ld_library_path
+
 # Utility used by mike-gcc.exp and c-torture.exp.
 # Check the compiler(/assembler/linker) output for text indicating that
 # the testcase should be marked as "unsupported".