Commit 33da53f
committed
fix(core): Core.Base links bcrypt on Windows, as Guid.cpp requires
System/Guid.cpp has called BCryptGenRandom on Windows since it gained a
cryptographically strong source for Guid.NewGuid, and nothing linked bcrypt for
it. Every Windows consumer therefore compiled the whole tree and then failed at
link time:
undefined reference to `BCryptGenRandom'
Security.Cryptography.Random already does exactly this for the same library;
Core.Base now does too. Found by the first Windows build of CNA against this
runtime -- both the mingw-w64 cross-build and native MSVC hit it.1 parent 5beb70c commit 33da53f
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
0 commit comments