From 516645ed9ebe43c08bc4be53d68833002ac1add3 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 27 Sep 2022 01:15:16 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CC call to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ Signed-off-by: Matthew Vernon --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 64fdebb..57e8174 100755 --- a/debian/rules +++ b/debian/rules @@ -23,7 +23,7 @@ build: dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build --no-parallel -- bible-index.c bible.data bible.data.conc 'LD=$$(CC)' rm -f *.o dh_auto_build --no-parallel -- bible 'LD=$$(CC)' - cd debian && $(CC) -g -O2 -o randverse randverse.c + cd debian && $(CC) -g -O2 -ffile-prefix-map=$(CURDIR)=. -o randverse randverse.c touch build build-arch: build -- 2.30.2