From: Vagrant Cascadian Date: Tue, 27 Sep 2022 01:14:43 +0000 (+0000) Subject: Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding build paths. X-Git-Tag: archive/debian/4.38~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=bible-kjv.git;a=commitdiff_plain;h=486c8a2f6a614646419a74b0ed627456844dee39 Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ Signed-off-by: Matthew Vernon --- diff --git a/Makefile b/Makefile index 3b998b8..6365c54 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ DESTMAN1 = $(DESTMAN)/man1 # I use environment variables for these... #CFLAGS = -g -CFLAGS = -Wall -Wformat -Werror -Wshadow -W -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wbad-function-cast -Wpointer-arith -g2 -ggdb -DDESTLIB=\"$(DESTLIB)\" +CFLAGS = -Wall -Wformat -Werror -Wshadow -W -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wbad-function-cast -Wpointer-arith -g2 -ggdb -DDESTLIB=\"$(DESTLIB)\" -ffile-prefix-map=$(CURDIR)=. LDFLAGS = LDADD = -lreadline