Always link input files in the same order

to produce bit-identical 'kak' binaries
See https://reproducible-builds.org/ for why this is good.

This change is needed because filesystem ordering is random
and ordering matters for the g++ linker
This commit is contained in:
Bernhard M. Wiedemann 2017-05-20 22:50:25 +02:00
parent 78991c4820
commit 4788112f2d

View File

@ -13,7 +13,7 @@ else
endif endif
endif endif
sources := $(wildcard *.cc) sources := $(sort $(wildcard *.cc))
objects := $(addprefix ., $(sources:.cc=$(suffix).o)) objects := $(addprefix ., $(sources:.cc=$(suffix).o))
deps := $(addprefix ., $(sources:.cc=$(suffix).d)) deps := $(addprefix ., $(sources:.cc=$(suffix).d))
docs := $(wildcard ../doc/manpages/*.asciidoc) docs := $(wildcard ../doc/manpages/*.asciidoc)