From f02aa61edcb6d799108dd59441c61ffa66038f8f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Mon, 16 May 2022 21:31:09 +0000 Subject: debian/rules: Pass -ffile-prefix-map in CFLAGS to avoid embedding build paths. (Closes: #1011104) https://reproducible-builds.org/docs/build-path/ --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 60c65ac..d18f93e 100755 --- a/debian/rules +++ b/debian/rules @@ -17,6 +17,10 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) else CFLAGS += -O2 endif + +# Avoid embedding the build path for reproducible builds +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + export CFLAGS -- cgit v1.2.3