sort input files

when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would differ.

See https://reproducible-builds.org/ for why this matters.
This commit is contained in:
Bernhard M. Wiedemann 2017-05-29 16:12:11 +02:00 committed by Arvid Norberg
parent 67a530f3ab
commit 72f8ad9756
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ else:
ext = [Extension( ext = [Extension(
'libtorrent', 'libtorrent',
sources=source_list, sources=sorted(source_list),
language='c++', language='c++',
include_dirs=flags.include_dirs, include_dirs=flags.include_dirs,
library_dirs=flags.library_dirs, library_dirs=flags.library_dirs,