Ximin Luo <infini...@pwned.gg> writes:

> -I to an absolute path is not that common for system / distro-built
> stuff.

Ok, thanks for clarifying.


> In the cases that it occurs, indeed it could and should be fixed
> by the package buildsystem, e.g. by stripping a prefix when they
> add -I flags to CFLAGS. But that's a separate issue from what
> we're talking about here.

I believe it is the same issue: any package that blindly embeds
information about how it was built into the result of the build
does not care about reproducible builds.

If others do agree that this should be "fixed" in GCC, then I
would suggest that you add a separate option for the environment
variable case (e.g., -ffile-prefix-map-env) and sidestep the
whole "how to portably distinguish a path from an environment
variable" issue.

Boris

Reply via email to