From ace2c5668e256b4686428f0f1f64ef8607bb67b2 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Mon, 22 May 2017 10:44:56 +0200 Subject: [PATCH] Fixed bug Trac #13038 Have constant link order to make builds reproducible. See https://reproducible-builds.org/ for why this is good. Without this patch g++ would order functions in libboost_container.so.1.64.0 depending on random order of files in the build system's filesystem. --- build/Jamfile.v2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index d6494ea..3adb451 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -4,6 +4,8 @@ # Boost Software License, Version 1.0. (See accompanying file # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +import sequence ; + project boost/container : source-location ../src : usage-requirements # pass these requirement to dependents (i.e. users) @@ -12,7 +14,7 @@ project boost/container ; lib boost_container - : alloc_lib.c [ glob *.cpp ] + : alloc_lib.c [ sequence.insertion-sort [ glob *.cpp ] ] : shared:BOOST_CONTAINER_DYN_LINK=1 static:BOOST_CONTAINER_STATIC_LINK=1 ;