Disable lto and -trimpath to improve reproducibility

Go's temporary work directory paths (which are non-reproducible) are embedded in the debug information when LTO is enabled.

The disadvantage of disabling LTO is that it potentially makes the produced build slower.

The advantage (in this case) is that improves reproducibility.

See also https://github.com/golang/go/pull/53528 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108534.

Co-authored-by: Morten Linderud foxboron@archlinux.org

Edited by Marcus

Merge request reports

Loading