Ximin Luo <infini...@pwned.gg> writes: > Higher-level build scripts sometimes like to save CFLAGS etc into the build > output, making the overall build output unreproducible even if GCC is playing > nicely. Rather than add logic to strip -f{file,debug,macro,...}-prefix-map, > into all possible higher-level programs that might want to save CFLAGS, it is > simpler if GCC could read it from a user-specified environment variable.
This does feel like we are trying to fix the issue in the wrong place. Also, won't such broken packages normally store all options (including -I) rather than just CFLAGS? And if the answer is no, then perhaps you could put -ffile-prefix-map into CPPFLAGS instead of CFLAGS? Kind of even feels right seeing that it affects the preprocessor. Boris