This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

[dejagnu/rfa] patch for lib/libgloss.exp



This patch allows gdb to find libstdc++ in the new location, in the
build tree, with v3 enabled.
W/o this the testsuite c++ files don't compile.

Am I the first to notice this problem? Or do I have something weird in
my tree?

An identical change was made to the gcc testsuite (in
gcc/testsuite/lib/g++.exp).

Elena


2001-08-21  Elena Zannoni  <ezannoni@redhat.com>

        * lib/libgloss.exp (g++_link_flags): Libstdc++ is now in
        libstdc++-v3/src/.libs.


Index: libgloss.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/dejagnu/lib/libgloss.exp,v
retrieving revision 1.84.40.1
diff -u -p -r1.84.40.1 libgloss.exp
--- libgloss.exp	2001/08/14 00:08:41	1.84.40.1
+++ libgloss.exp	2001/08/21 19:41:25
@@ -251,6 +251,10 @@ proc g++_link_flags { args } {
 	    append flags "-L${gccpath}/libstdc++ "
 	    append ld_library_path ":${gccpath}/libstdc++"
 	}
+	if [file exists "${gccpath}/libstdc++-v3/src/.libs/libstdc++.a"] {
+	    append flags "-L${gccpath}/libstdc++-v3/src/.libs "
+	    append ld_library_path ":${gccpath}/libstdc++-v3/src/.libs"
+	}
 	if [file exists "${gccpath}/libiberty/libiberty.a"] {
 	    append flags "-L${gccpath}/libiberty "
 	}


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