chiark / gitweb /
Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding build paths.
authorVagrant Cascadian <vagrant@reproducible-builds.org>
Tue, 27 Sep 2022 01:14:43 +0000 (01:14 +0000)
committerMatthew Vernon <matthew@debian.org>
Fri, 30 Sep 2022 14:20:28 +0000 (15:20 +0100)
https://reproducible-builds.org/docs/build-path/

Signed-off-by: Matthew Vernon <matthew@debian.org>
Makefile

index 3b998b8946cede50e1ca18bc42ef64f81f486d2e..6365c543891416486768d07beeb10d0d46e89bdb 100644 (file)
--- 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