From 033fed8c9246152b06bc2dcf96bbf9b33b2be71f Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sat, 20 May 2017 00:34:08 +0200 Subject: [PATCH] have constant link order (#426) Make builds reproducible See https://reproducible-builds.org/ for why this is good. Without this patch g++ would order functions in libcryptopp.so.5.6.5 depending on random order of files in the build system's filesystem. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 8ec0f7f8..3981dd53 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -516,7 +516,7 @@ endif # HAS_SOLIB_VERSION ########################################################### # List cryptlib.cpp first, then cpu.cpp, then integer.cpp to tame C++ static initialization problems. -SRCS := cryptlib.cpp cpu.cpp integer.cpp $(filter-out cryptlib.cpp cpu.cpp integer.cpp pch.cpp simple.cpp winpipes.cpp cryptlib_bds.cpp,$(wildcard *.cpp)) +SRCS := cryptlib.cpp cpu.cpp integer.cpp $(filter-out cryptlib.cpp cpu.cpp integer.cpp pch.cpp simple.cpp winpipes.cpp cryptlib_bds.cpp,$(sort $(wildcard *.cpp))) # Need CPU for X86/X64/X32 and ARM ifeq ($(IS_X86)$(IS_X32)$(IS_X64)$(IS_ARM32)$(IS_ARM64),00000)