drop __DATE__ from fp_ident

To meet Debian's reproducible builds [0] goal I remove the __DATE__
macro.
In case this is not acceptable because the date of build is _really_
important / required I could come with a ifdef or something else.

[0] https://wiki.debian.org/ReproducibleBuilds

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
This commit is contained in:
Sebastian Andrzej Siewior 2015-04-13 22:09:39 +02:00 committed by Steffen Jaeckel
parent f0f92f033e
commit 8ea169937d

View File

@ -15,7 +15,7 @@ const char *fp_ident(void)
memset(buf, 0, sizeof(buf)); memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf)-1, snprintf(buf, sizeof(buf)-1,
"TomsFastMath (%s)\n" "TomsFastMath\n"
"\n" "\n"
"Sizeofs\n" "Sizeofs\n"
"\tfp_digit = %lu\n" "\tfp_digit = %lu\n"
@ -70,7 +70,7 @@ const char *fp_ident(void)
#ifdef TFM_HUGE #ifdef TFM_HUGE
" TFM_HUGE " " TFM_HUGE "
#endif #endif
"\n", __DATE__, (unsigned long)sizeof(fp_digit), (unsigned long)sizeof(fp_word), FP_MAX_SIZE); "\n", (unsigned long)sizeof(fp_digit), (unsigned long)sizeof(fp_word), FP_MAX_SIZE);
if (sizeof(fp_digit) == sizeof(fp_word)) { if (sizeof(fp_digit) == sizeof(fp_word)) {
strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n", strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n",