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]
Other format: [Raw text]

3.1 PATCH: Set LD_LIBRARY{N32, 64}_PATH in libstdc++-v3 testsuite


Running make check on mips-sgi-irix6.5 for both N32 and N64 ABIs

	http://gcc.gnu.org/ml/gcc-testresults/2002-04/msg01131.html

I noticed that all N32 execution tests failed.  This happened since I had
set LD_LIBRARYN32_PATH to an unrelated value, which took precedence over
LD_LIBRARY_PATH as set by the testsuite framework.  Therefore, the N32
libstdc++.so wasn't found at runtime.

The following patch fixes this: it's patterened after David Billinghurst's
patch for the g++, g77, and objc testsuites:

	http://gcc.gnu.org/ml/gcc-patches/2002-02/msg00208.html

Tested by rerunning make check in libstdc++-v3 with
RUNTESTFLAGS="--target_board 'unix{,-mabi=64}'".  With this patch, N32 and
N64 results are identical:

	http://gcc.gnu.org/ml/gcc-testresults/2002-04/msg01131.html

Ok for branch and mainline?

	Rainer


Mon Apr 29 22:50:55 2002  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set all
	of LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
	LD_LIBRARY64_PATH. 

Index: testsuite/lib/libstdc++-v3-dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp,v
retrieving revision 1.13
diff -u -p -r1.13 libstdc++-v3-dg.exp
--- testsuite/lib/libstdc++-v3-dg.exp	28 Jan 2002 22:13:12 -0000	1.13
+++ testsuite/lib/libstdc++-v3-dg.exp	30 Apr 2002 00:48:28 -0000
@@ -69,6 +69,17 @@ proc libstdc++-v3-init { args } {
     append ld_library_path ":${gccdir}"
     append ld_library_path ":${blddir}/src/.libs"
 
+    # 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.  We really only need to do 
+    # this on IRIX, but it shouldn't hurt to do it anywhere else.
+    setenv  LD_LIBRARY_PATH     $ld_library_path
+    setenv  SHLIB_PATH          $ld_library_path
+    setenv  LD_LIBRARYN32_PATH  $ld_library_path
+    setenv  LD_LIBRARY64_PATH   $ld_library_path
+
     # Do a bunch of handstands and backflips for cross compiling and
     # finding simulators...
     if [is_remote host] {


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