wscript: enable bcrypt on Windows, add entropy generator that avoids usage of bcrypt for our 32-bit builds, allowing them to run on Windows XP

This commit is contained in:
Alibek Omarov
2026-06-07 06:30:01 +05:00
parent 85e5f032d8
commit e31c893852
5 changed files with 52 additions and 1 deletions

View File

@@ -191,6 +191,8 @@ def build(bld):
if bld.env.DEST_OS == 'win32':
libs += ['USER32', 'SHELL32', 'GDI32', 'ADVAPI32', 'DBGHELP', 'PSAPI', 'WS2_32']
if bld.env.DEST_SIZEOF_VOID_P > 4:
libs += ['BCRYPT']
elif bld.env.DEST_OS == 'nswitch':
libs += ['SOLDER']
# HACK: link in the entirety of libstdc++ so that dynamic libs could use all of it without manual exporting