summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--pacredir.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 800d0b8..f411f4b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
# pacredir - redirect pacman requests, assisted by avahi service discovery
-PREFIX := /usr
+PREFIX := /usr
+REPRODUCIBLE := 0
# commands
CC := gcc
@@ -34,7 +35,7 @@ arch: arch.c arch.h
$(CC) $(CFLAGS) $(LDFLAGS) -o arch arch.c
pacredir: pacredir.c arch.h pacredir.h config.h version.h
- $(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) -DID=\"$(ID)\" -o pacredir pacredir.c
+ $(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) -DREPRODUCIBLE=$(REPRODUCIBLE) -DID=\"$(ID)\" -o pacredir pacredir.c
config.h:
$(CP) config.def.h config.h
diff --git a/pacredir.c b/pacredir.c
index 11ab5f9..7a9be30 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -639,7 +639,9 @@ int main(int argc, char ** argv) {
if (verbose > 0)
write_log(stdout, "%s: " PROGNAME " v" VERSION " " ID "/" ARCH
+#if REPRODUCIBLE == 0
" (compiled: " __DATE__ ", " __TIME__ ")"
+#endif
"\n", argv[0]);
if (help > 0)