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)