From: Vagrant Cascadian Date: Tue, 27 Sep 2022 01:15:16 +0000 (+0000) Subject: debian/rules: Add -ffile-prefix-map to CC call to avoid embedding build paths. X-Git-Tag: archive/debian/4.38~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=bible-kjv.git;a=commitdiff_plain;h=516645ed9ebe43c08bc4be53d68833002ac1add3 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 --- 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