This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow embedded timestamps by C/C++ macros to be set externally


On Jun 30, 2015, at 10:38 AM, Martin Sebor <msebor@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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]