1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 19:43:13 +02:00

Optionally strip variable build date from compiled program

To aid build reproducibility, don't include the build date/time if
-DREPRODUCIBLE_BUILD is defined.

Based on the patch provided by Alexis Bienvenüe in the Debian report.

Bug-Debian: https://bugs.debian.org/820152
Patch-Name: reproducible_datetime.diff
This commit is contained in:
Dominic Hargreaves
2016-04-21 22:23:25 +01:00
parent 8b6e17fe7e
commit fab07d6b75
3 changed files with 11 additions and 0 deletions
+2
View File
@@ -336,7 +336,9 @@ namespace Anope
template<typename T> class multimap : public std::multimap<string, T, ci::less> { };
template<typename T> class hash_map : public TR1NS::unordered_map<string, T, hash_ci, compare> { };
#ifndef REPRODUCIBLE_BUILD
static const char *const compiled = __TIME__ " " __DATE__;
#endif
/** The time Anope started.
*/