added configure option for reproducible builds (static values in BUILDDATE and BUILDSTR)

This commit is contained in:
Thomas Ries
2022-02-18 07:40:32 +01:00
parent 88f601c6cf
commit f47a3e0f0b
2 changed files with 29 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2002-2017 Thomas Ries <tries@gmx.net>
# Copyright (C) 2002-2022 Thomas Ries <tries@gmx.net>
#
# This file is part of Siproxd.
#
@@ -19,10 +19,18 @@
#
if REPRODUCIBLE_BUILD
BUILDDATE="\"unknown\""
BUILDSTR="\"none\""
else
BUILDDATE="\"`date -u '+%Y-%m-%dT%H:%M:%S'`\""
BUILDSTR="\"`cat .buildno`\""
endif
AM_CFLAGS = -D_GNU_SOURCE $(LTDLDEF) \
-Werror-implicit-function-declaration \
-DBUILDSTR="\"`cat .buildno`\"" \
-DBUILDDATE="\"`date -u '+%Y-%m-%dT%H:%M:%S'`\""
-DBUILDSTR=$(BUILDSTR) \
-DBUILDDATE=$(BUILDDATE)
#&&&INCLUDES = $(LTDLINCL)
AM_CPPFLAGS = $(LTDLINCL)