From cf8aaf3ecc0b3b78a62a15839fa1d90263a2f5bb Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 18 Nov 2021 16:33:06 -0800 Subject: [PATCH] Pass -ffile-prefix-map to ensure reproducible builds regardless of build path. Upstream commit 12753d22563f7d2d01f2c6644c7b66b06eb5c90f introduced uses of __FILE__ which may result in the build path getting embedded into the resulting binary. https://reproducible-builds.org/docs/build-path/ Signed-off-by: Vagrant Cascadian --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8623c1c..c597088 100644 --- a/Makefile +++ b/Makefile @@ -284,6 +284,7 @@ CFLAGS += $(GENFLAGS) CFLAGS += $(platform-cflags-y) CFLAGS += -fno-pie -no-pie CFLAGS += $(firmware-cflags-y) +CFLAGS += -ffile-prefix-map=$(CURDIR)=. CPPFLAGS += $(GENFLAGS) CPPFLAGS += $(platform-cppflags-y) -- 2.30.2