From 1e9d7e9f89966c1cc3a3663d3efe8a1be9db12c4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 24 Aug 2013 21:35:49 +0000 Subject: [PATCH] need to link against advapi32 when using ed25519, since it needs entropy --- Jamfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Jamfile b/Jamfile index aac373b9b..416a4f836 100755 --- a/Jamfile +++ b/Jamfile @@ -36,12 +36,6 @@ rule linking ( properties * ) { # exclude gcc from a regular windows build to make mingw # link against the regular unix library name - - if windows in $(properties) - { - result += gdi32 ; - } - if windows in $(properties) { result += ssleay32 @@ -49,6 +43,7 @@ rule linking ( properties * ) advapi32 user32 shell32 + gdi32 ; } else @@ -102,6 +97,13 @@ rule linking ( properties * ) WIN32 _WIN32 ; + + # when DHT is enabled, we need ed25519 which in turn + # needs entropy + if ! off in $(properties) + { + result += advapi32 ; + } } if beos in $(properties)