1 Without ffile-prefix-map, the debug symbols will contain paths for the
2 guix store which will include the hashes of each package. However, the
3 hash for the same package will differ when on different architectures.
4 In order to be reproducible regardless of the architecture used to build
5 the package, map all guix store prefixes to something fixed, e.g. /usr.
6 7 --- a/Makeconfig
8 +++ b/Makeconfig
9 @@ -1007,6 +1007,7 @@ object-suffixes :=
10 CPPFLAGS-.o = $(pic-default)
11 # libc.a must be compiled with -fPIE/-fpie for static PIE.
12 CFLAGS-.o = $(filter %frame-pointer,$(+cflags)) $(pie-default)
13 +CFLAGS-.o += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;`
14 libtype.o := lib%.a
15 object-suffixes += .o
16 ifeq (yes,$(build-shared))
17