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]

[v3] slight bugfix for tests_flags.in


For the --installed-library case, we were setting LIB_PATH to prefix/lib
and GCC_LIB_PATH to empty.  Which is correct, I believe.  But then we were
passing GCC_LIB_PATH as the argument to libtool's -rpath.  And then the
source files would be passed last, so libtool was receiving

    .... -rpath /path/to/test.cc

Which libtool would (correctly, I think) translate into a linker invocation
like

    ... -Wl,--rpath -Wl,/path/to/test.cc

causing every single test to fail to build.  This only shows up when
running the (now superceded) mkcheck script.


Tested on linux, installed on truck.


2001-03-30  Phil Edwards  <pme@sources.redhat.com>

	* tests_flags.in (LIBS):  Pass correct path for installed testing.


Index: tests_flags.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/tests_flags.in,v
retrieving revision 1.15
diff -u -3 -p -r1.15 tests_flags.in
--- tests_flags.in	2001/03/30 08:14:14	1.15
+++ tests_flags.in	2001/03/30 21:53:01
@@ -160,7 +160,7 @@ case ${query} in
     esac
     ;;
     --installed-library)
-	LIBS="${LIB_PATH}/libstdc++.la -no-install -rpath ${GCC_LIB_PATH}"
+	LIBS="${LIB_PATH}/libstdc++.la -no-install -rpath ${LIB_PATH}"
 	;;
 esac
 


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