1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: 2022-09-27
Subject: Makefile: Pass --debug-prefix-map to avoid embedding build directory.
Bug-Debian: https://bugs.debian.org/1020866
https://tests.reproducible-builds.org/debian/issues/unstable/build_path_captured_in_assembly_objects_issue.html
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC = gcc
WARN = -Wall -Wextra -Werror
-CFLAGS = -O2 -g $(WARN)
+CFLAGS = -O2 -g --debug-prefix-map=$(CURDIR)=. $(WARN)
INCLUDE =
LDFLAGS = -lresolv
DESTDIR ?=
|