[PATCH v2 2/2] ld: write full paths to dependency-file

Jan Beulich jbeulich@suse.com
Mon Sep 18 13:38:21 GMT 2023


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.

Jan


More information about the Binutils mailing list