Skip to content

Commit a4fff8a

Browse files
committed
replace DATE, TIME and COMPILER by fixed definitions to aid reproducible builds
Patch: python-3.3.0b1-fix_date_time_compiler.patch
1 parent 1faece6 commit a4fff8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.pre.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
738738
$(MODOBJS) \
739739
$(srcdir)/Modules/getbuildinfo.c
740740
$(CC) -c $(PY_CORE_CFLAGS) \
741+
-DDATE="\"`date -u -r Makefile.pre.in +"%b %d %Y"`\"" \
742+
-DTIME="\"`date -u -r Makefile.pre.in +"%T"`\"" \
741743
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
742744
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
743745
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
744746
-o $@ $(srcdir)/Modules/getbuildinfo.c
745747

748+
Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile
749+
$(CC) -c $(PY_CORE_CFLAGS) \
750+
-DCOMPILER='"[GCC]"' \
751+
-o $@ $(srcdir)/Python/getcompiler.c
752+
746753
Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
747754
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
748755
-DPREFIX='"$(prefix)"' \

0 commit comments

Comments
 (0)