summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-03-24 12:43:31 -0700
committerMichael Forney <mforney@mforney.org>2017-03-24 12:43:31 -0700
commitbc4a9176f865809d6947d2273d449e958c2ce8e2 (patch)
tree8681ebcbab47c0c2394682193a37847e9e24d013 /pkg
parentffc3993238b3f354b0be45056923261022b040f5 (diff)
python: Set DATE and TIME for reproducible builds
Diffstat (limited to 'pkg')
-rw-r--r--pkg/python/gen.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/python/gen.rc b/pkg/python/gen.rc
index e379ed99..50e3c60d 100644
--- a/pkg/python/gen.rc
+++ b/pkg/python/gen.rc
@@ -9,7 +9,7 @@ cflags=(\
srcs=(\
Modules/^(\
- getbuildinfo.c\
+ getbuildinfo.c.o\
getpath.c.o\
main.c\
gcmodule.c\
@@ -153,6 +153,8 @@ build '$outdir'/config.c makesetup '$dir'/Setup '|' '$srcdir'/Modules/^(makesetu
cflags $cflags
+cc Modules/getbuildinfo.c ; with\
+ cflags '$cflags -D ''DATE="Dec 22 2016"'' -D ''TIME="18:38:47"'''
cc Modules/getpath.c ; defs='-D '''^(\
'PYTHONPATH='":plat-linux"\
'PREFIX='"/"\