From 552b1052060453ebb6e223722d9915fbf10d6947 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Sep 2014 09:26:41 +0200 Subject: [PATCH] gcc-wrapper: Use a real date Analogous to the fake timestamp in the Linux kernel build. --- pkgs/build-support/gcc-wrapper/gcc-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh index 08c61098809..11ee8592932 100644 --- a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh +++ b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh @@ -87,8 +87,8 @@ extraBefore=() # When enforcing purity, pretend gcc can't find the current date and # time if test "$NIX_ENFORCE_PURITY" = "1"; then - extraAfter+=('-D__DATE__="??? ?? ????"' - '-D__TIME__="??:??:??"' + extraAfter+=('-D__DATE__="Jan 01 1970"' + '-D__TIME__="00:00:01"' -Wno-builtin-macro-redefined) fi