This following patch was originally found at the debian mingw-w64 team's mingw-w64 repo located here: https://salsa.debian.org/mingw-w64-team/mingw-w64.git Invoke the following in the aforementioned repo to see the original patch: $ git show 4974e2c:debian/patches/reproducible-gendef.patch Description: Drop __DATE__ from gendef Author: Stephen Kitt This allows gendef to be built reproducibly. --- a/mingw-w64-tools/gendef/src/gendef.c +++ b/mingw-w64-tools/gendef/src/gendef.c @@ -196,7 +196,6 @@ " By default, the output files are named after their DLL counterparts\n" " gendef MYDLL.DLL Produces MYDLL.def\n" " gendef - MYDLL.DLL Prints the exports to stdout\n"); - fprintf (stderr, "\nBuilt on %s\n", __DATE__); fprintf (stderr, "\nReport bugs to \n"); exit (0); }