Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* sysroot and softlinks
@ 2015-11-04 14:56 Paul_Koning
  2015-11-04 15:15 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Paul_Koning @ 2015-11-04 14:56 UTC (permalink / raw)
  To: gdb

I have a cross-build setup where the target file system image is built into some directory tree, which means that the base of that tree is the value to be used in "set sysroot".  

For the most part that works.  But I have a reference to a file (shared library or the like) which is actually a softlink, and the link target is an absolute path.  That absolute path is valid in the target system, but not in the sysroot subtree.

Changing that softlink to a relative link would cure the problem, of course, but I don't really want to mess with the system build; for one thing, that wouldn't help with previously built images.

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.

Does that change make sense?

	paul


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-04 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 14:56 sysroot and softlinks Paul_Koning
2015-11-04 15:15 ` Andreas Schwab
2015-11-04 15:58   ` Paul_Koning
2015-11-04 16:48     ` Jan Kratochvil
2015-11-04 16:57       ` Paul_Koning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox