On Jun 30, 2015, at 10:38 AM, Martin Sebor <mse...@gmail.com> wrote: >> In the debian reproducible builds project we have considered several >> options to address this issue. We considered redefining the __DATE__ and >> __TIME__ defines by command line flags passed to gcc, but as you say, >> that triggers warnings, which could become errors when building with >> -Werror and thus may require manual intervention on many packages. > > Would replacing the localtime function with one of your own > in a DSO and preloading the DSO when invoking GCC be a viable > solution?
No please. Not all systems have shared libraries, preloading and so on. Indeed, I like building on my target system using the simulator, no shared libraries around.