sysroot and softlinks

Paul_Koning@Dell.com Paul_Koning@Dell.com
Wed Nov 4 15:58:00 GMT 2015


> 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



More information about the Gdb mailing list