Module: kamailio
Branch: master
Commit: 8f1fbd7b17440b1b7d87cbee5793ae9b1adebf90
URL:
https://github.com/kamailio/kamailio/commit/8f1fbd7b17440b1b7d87cbee5793ae9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-07-20T19:38:32+02:00
kex: support VERSION_NODATE and VERSION_DATE for reproducible builds
support added e03d1279f49709e0d320478fa1ff7c27161c30ed
Related: #60
---
Modified: modules/kex/mi_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8f1fbd7b17440b1b7d87cbee5793ae9…
Patch:
https://github.com/kamailio/kamailio/commit/8f1fbd7b17440b1b7d87cbee5793ae9…
---
diff --git a/modules/kex/mi_core.c b/modules/kex/mi_core.c
index 9174809..9a1dcc8 100644
--- a/modules/kex/mi_core.c
+++ b/modules/kex/mi_core.c
@@ -51,7 +51,15 @@
#include "../../cfg/cfg.h"
#include "../../cfg/cfg_ctx.h"
+#ifdef VERSION_NODATE
+#define BUILD_STR __FILE__ " compiled with " COMPILER "\n"
+#else
+#ifdef VERSION_DATE
+#define BUILD_STR __FILE__ " compiled on " VERSION_DATE " with "
COMPILER "\n"
+#else
#define BUILD_STR __FILE__ " compiled on "__TIME__ " " __DATE__
" with " COMPILER "\n"
+#endif
+#endif
#define BUILD_STR_LEN (sizeof(BUILD_STR)-1)
#ifndef SVNREVISION