https://sourceware.org/bugzilla/show_bug.cgi?id=34309
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Anton Lundin from comment #0)
> We're using -fdebug-prefix-map= to produce reproducible builds, independent
> of absolute path to the source directory.
>
> In our Makefiles we use some make magic to calculate current directory and
> compile with the following in CFLAGS:
> -fdebug-prefix-map=$(current_dir)=.
But the compiler doesn't need to be inside the current directory of the output
or input files that are later linked together, so this might produce
executables using "." as start of different paths.
Instead of using -fdebug-prefix-map= with relative paths. Maybe you could
debugedit as a postprocessing pass to rewrite the source paths (to absolute
paths) after link? That should result in reproducible builds (assuming the
chosen absolute output path is always the same, independent from where the
source input paths were).
--
You are receiving this mail because:
You are on the CC list for the bug.