diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-03-17 16:03:57 -0400 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-28 14:19:33 +0100 |
commit | 1d4d711de2d9beb20339da92dea298850da354b1 (patch) | |
tree | 01e55b2041bf741c2693edbf8b606dce2a539278 /contrib/guix/libexec | |
parent | ba29911e21c88f49780c6c87f94ff8ed6e764a9d (diff) | |
download | bitcoin-1d4d711de2d9beb20339da92dea298850da354b1.tar.xz |
guix: Map all guix store prefixes to /usr
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.
Diffstat (limited to 'contrib/guix/libexec')
-rwxr-xr-x | contrib/guix/libexec/build.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index ad3129184c..28cad05013 100755 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -223,6 +223,7 @@ CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --disab # CFLAGS HOST_CFLAGS="-O2 -g" +HOST_CFLAGS+=$(find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;) case "$HOST" in *linux*) HOST_CFLAGS+=" -ffile-prefix-map=${PWD}=." ;; *mingw*) HOST_CFLAGS+=" -fno-ident" ;; |