This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] Remove the directory of DEST in proc gdb_compile_shlib
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 17 Jul 2013 10:37:14 -0600
- Subject: Re: [PATCH 2/3] Remove the directory of DEST in proc gdb_compile_shlib
- References: <1373439314-14099-1-git-send-email-yao at codesourcery dot com> <1373439314-14099-3-git-send-email-yao at codesourcery dot com>
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
Yao> 2013-07-10 Yao Qi <yao@codesourcery.com>
Yao> * lib/gdb.exp (gdb_compile_shlib): Pass the tail name of $dest
Yao> to link options. Move the generated file to $dest.a on host.
If I understand this properly, it makes the "--out-implib" always be in
".".
This seems fine for the remote host case, but for the local host case, I
think it would be better for the file to appear in the "correct" output
directory, according to the parallelization work I've been doing. I
realize this isn't all done; but it is helpful not to introduce new
cases to try to fix, and I think easy to do as well. Here "correct"
just means making sure it is in the same directory as $dest.
I suspect just checking [is_remote host] would be sufficient here.
What do you think?
Tom