2023-06-11 09:01:08 +02:00
|
|
|
Without ffile-prefix-map, the debug symbols will contain paths for the
|
|
|
|
guix store which will include the hashes of each package. However, the
|
|
|
|
hash for the same package will differ when on different architectures.
|
|
|
|
In order to be reproducible regardless of the architecture used to build
|
|
|
|
the package, map all guix store prefixes to something fixed, e.g. /usr.
|
|
|
|
|
|
|
|
--- a/Makeconfig
|
|
|
|
+++ b/Makeconfig
|
2024-11-03 21:44:22 +01:00
|
|
|
@@ -1007,6 +1007,7 @@ object-suffixes :=
|
2023-06-11 09:01:08 +02:00
|
|
|
CPPFLAGS-.o = $(pic-default)
|
|
|
|
# libc.a must be compiled with -fPIE/-fpie for static PIE.
|
|
|
|
CFLAGS-.o = $(filter %frame-pointer,$(+cflags)) $(pie-default)
|
2023-05-09 20:08:03 +02:00
|
|
|
+CFLAGS-.o += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;`
|
2023-06-11 09:01:08 +02:00
|
|
|
libtype.o := lib%.a
|
|
|
|
object-suffixes += .o
|
|
|
|
ifeq (yes,$(build-shared))
|