This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[PATCH] Also install data-directory into the build directory as computed by relocate_gdb_directory


Hi,

On Sep 24, 2012, at 1:03 PM, Joel Brobecker wrote:

>> Here's yet another alternative: gdb already tries to locate
>> data-directory in $BUILDDIR/share/gdb as part of the relocation logic;
>> we can install a symlink there that points to
>> $BUILDDIR/gdb/data-directory, or make a copy for platforms that don't
>> support symlinks.
> 
> Sounds like an interesting idea. We could even do a local install
> of the share directory with $BUILDDIR as the prefix, to avoid
> duplicating the code, if that helps. But people might complain that
> this steps is unnecessary for those who always do an install after
> build. I think it's sufficiently negligible to be OK, personally.

Here's a first attempt at this. It's quite simple, but it assumes that $GDB_DATADIR and/or $bindir aren't too unusual.

Yit
September 24, 2012

Attachment: builddir-data-directory.txt
Description: Text document


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