This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: path to find libcc1.so?
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Sat, 13 Dec 2014 13:49:50 -0800
- Subject: Re: path to find libcc1.so?
- Authentication-results: sourceware.org; auth=none
- References: <83mw6sq941 dot fsf at gnu dot org> <CADPb22SpZAozZmtq+QMwndmi2mZpD2QF221ZpLSszr0cS0+gEw at mail dot gmail dot com> <20141213185647 dot GA14208 at host2 dot jankratochvil dot net> <CADPb22Sjb+mgnp3fm06VPZLE_1u-iOStA-VcuHZAhPyBJB0R_w at mail dot gmail dot com> <20141213201600 dot GA15686 at host2 dot jankratochvil dot net>
On Sat, Dec 13, 2014 at 12:16 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sat, 13 Dec 2014 20:57:35 +0100, Doug Evans wrote:
>> Early adopters and those who want to contribute may find it preferable
>> to use, e.g., ~/.gdbinit.
>>
>> If this is something we eventually want to do, doing it now will help
>> people we want/need.
>>
>> Plus it's, what, 10 lines of (real) code?
>
> It is then questionable whether there should also be a GDB option where to
> find the GCC driver. Currently gcc/libcc1/findcomp.cc searches it in $PATH.
That is a good question.
If I configure gcc with a certain --prefix,
and link libcc1.so, with, say, --rpath,
do/should I need to do anything more?
[for a normal installation (libcc1.so has not been copied out of $prefix and
into some random directory) should libcc1.so be able to find its gcc
on its own?]