From af2a7c89430856c326e971018c1e1e0813739339 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 6 Sep 2022 09:50:48 +0100 Subject: [PATCH] guix: consistently use -ffile-prefix-map Aside from being the newer, more comprehensive option, it's what we claim to use in the patch docs, and everywhere else in guix. --- contrib/guix/patches/glibc-2.24-guix-prefix.patch | 2 +- contrib/guix/patches/glibc-2.27-guix-prefix.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/guix/patches/glibc-2.24-guix-prefix.patch b/contrib/guix/patches/glibc-2.24-guix-prefix.patch index cba2f59a8dc..875e8cd6119 100644 --- a/contrib/guix/patches/glibc-2.24-guix-prefix.patch +++ b/contrib/guix/patches/glibc-2.24-guix-prefix.patch @@ -15,7 +15,7 @@ when we being using newer versions of glibc. CFLAGS-.oS = $(CFLAGS-.o) $(PIC-ccflag) + +# Map Guix store paths to /usr -+CFLAGS-.oS += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -fdebug-prefix-map={}=/usr" \;` ++CFLAGS-.oS += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;` + CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1 libtype.oS = lib%_nonshared.a diff --git a/contrib/guix/patches/glibc-2.27-guix-prefix.patch b/contrib/guix/patches/glibc-2.27-guix-prefix.patch index cdb3971f7a0..d777af74f01 100644 --- a/contrib/guix/patches/glibc-2.27-guix-prefix.patch +++ b/contrib/guix/patches/glibc-2.27-guix-prefix.patch @@ -15,7 +15,7 @@ when we being using newer versions of glibc. CFLAGS-.o = $(filter %frame-pointer,$(+cflags)) $(pie-default) + +# Map Guix store paths to /usr -+CFLAGS-.o += `find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -fdebug-prefix-map={}=/usr" \;` ++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