This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [dejagnu/rfa] patch for lib/libgloss.exp
- To: Elena Zannoni <ezannoni at cygnus dot com>
- Subject: Re: [dejagnu/rfa] patch for lib/libgloss.exp
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Tue, 13 Nov 2001 11:27:46 -0500
- Cc: gdb-patches at sources dot redhat dot com
- Organization: Red Hat Canada
- References: <15234.55700.613606.393980@krustylu.cygnus.com>
Elena Zannoni wrote:
>
> 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
>
If you don't get a reply in a reaonable amount of time, please 'ping'
us.
It seems that neither Mark or I saw it (my Netscape filters sometimes
fail).
Elena patch has 2 magical sentences that make it an obvious fix:
"W/o this the testsuite c++ files don't compile."
and
"An identical change was made to the gcc testsuite"
Please check it in Elena, and thanks for the fix.
And thanks to Andrew for finding it floating around.
Fernando
> 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 "
> }
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9