implement `-ffile-prefix-map=$builddir=.`
https://reproducible-builds.org/docs/build-path/
dpkg and others do it too https://manpages.debian.org/bullseye/dpkg-dev/dpkg-buildflags.1.en.html
benefit is that filepaths such as /home/buildozer/.....
can be replaced with just .
. that is much more tidy/neat visually and doesn't pollute with build env. it's also a reproducibility thing, even though we don't do that yet.
some set a prefix (e.g. build/
) but that's unnecessary, just ./ is fine
C+: -ffile-prefix-map=$builddir=.
rust: --remap-path-prefix=$builddir=.
for go, trimpath already does this, so we have it set there.
this isn't as simple as a flag in default.conf- because builddir
is not set at the time the file is sourced. it has to be in abuild.conf
making it conditional exclude (options_has "!trimpath"
) would be nice too