mirror of https://github.com/bitcoin/bitcoin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
770 B
17 lines
770 B
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
|
|
@@ -1007,6 +1007,7 @@ object-suffixes :=
|
|
CPPFLAGS-.o = $(pic-default)
|
|
# libc.a must be compiled with -fPIE/-fpie for static PIE.
|
|
CFLAGS-.o = $(filter %frame-pointer,$(+cflags)) $(pie-default)
|
|
+CFLAGS-.o += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;`
|
|
libtype.o := lib%.a
|
|
object-suffixes += .o
|
|
ifeq (yes,$(build-shared))
|