[PATCH v2 2/2] ld: write full paths to dependency-file
Thomas Weißschuh
thomas@t-8ch.de
Mon Sep 18 19:35:37 GMT 2023
On 2023-09-18 15:38:21+0200, Jan Beulich wrote:
> On 16.09.2023 12:36, Thomas Weißschuh wrote:
> > When relative paths are written to the dependency-file it forces the
> > users of it to run from the same directory.
> > To avoid this only write absolute paths.
>
> Using relative paths, otoh, may allow to move build trees around. First and
> foremost the two behaviors may relevant when (not) building in the source
> tree itself. Furthermore the compiler, gcc at least, looks to also write
> relative paths when relative paths were given.
Fair enough. Let's drop this patch then.
Thomas
More information about the Binutils
mailing list