This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: sysroot and softlinks
- From: <Paul_Koning at Dell dot com>
- To: <schwab at suse dot de>
- Cc: <gdb at sourceware dot org>
- Date: Wed, 4 Nov 2015 15:58:07 +0000
- Subject: Re: sysroot and softlinks
- Authentication-results: sourceware.org; auth=none
- References: <736EC98D-ED8D-4179-B82A-984C249E1D8E at dell dot com> <mvmvb9h3if7 dot fsf at hawking dot suse dot de>
> On Nov 4, 2015, at 10:15 AM, Andreas Schwab <schwab@suse.de> wrote:
>
> <Paul_Koning@Dell.com> writes:
>
>> The other solution would be for solid_find to test for this case: check if
>> the name is a softlink and if so, whether its target is absolute. If yes,
>> prefix sysroot onto the target and repeat.
>
> How would you mark symlinks that are supposed to be relative to the host
> root?
One possible answer is not to handle that case. Another possibility is to try that if the sysroot-prefixed version doesn't work.
The reason for trying sysroot first is that the name on the host may in fact work, but may be the wrong file (different OS or different machine architecture).
paul