summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-15 18:19:22 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-15 18:19:22 +0200
commitebfc0ed789a852625121f67878db5e2a7526a5e3 (patch)
tree3a8d9bc544d9da0fed7b617d5d20451dceeb8179 /src/phmain.c
parenta4a4873909f1045bc98b2c3b3477c1700e538034 (diff)
Do not record compilation time by default, will help to get reproductible build
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 869f01e..a1e4484 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -114,7 +114,9 @@ static void display_version(void)
printf("\n");
printf("Version: %s\n", VERSION);
printf("Compiler: %s\n", get_compiler());
+#ifdef RECORD_COMPILATION_DATE
printf("Compilation date: %s\n", get_compilation_date());
+#endif
printf("ext2fs lib: %s, ntfs lib: %s, ewf lib: %s, libjpeg: %s, curses lib: %s\n",
td_ext2fs_version(), td_ntfs_version(), td_ewf_version(), td_jpeg_version(), td_curses_version());
printf("OS: %s\n" , get_os());
@@ -318,7 +320,9 @@ int main( int argc, char **argv )
log_info("PhotoRec %s, Data Recovery Utility, %s\nChristophe GRENIER <grenier@cgsecurity.org>\nhttp://www.cgsecurity.org\n", VERSION, TESTDISKDATE);
log_info("OS: %s\n" , get_os());
log_info("Compiler: %s\n", get_compiler());
+#ifdef RECORD_COMPILATION_DATE
log_info("Compilation date: %s\n", get_compilation_date());
+#endif
log_info("ext2fs lib: %s, ntfs lib: %s, ewf lib: %s, libjpeg: %s, curses lib: %s\n",
td_ext2fs_version(), td_ntfs_version(), td_ewf_version(), td_jpeg_version(), td_curses_version());
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(DJGPP)