Re: Unable to build GDB on Windows
Christian Biesinger via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAPTJ0XGEpMN=JWDYmEZ6KAj3Ucbfpz7SJsApML61uE_Jfjcm1g@mail.gmail.com> |
On Mon, Sep 28, 2020 at 4:44 PM Eli Zaretskii via Gdb <[email protected]> wrote: > Btw, looking at Gnulib's getrandom.c, my conclusion is that a GDB > built on Windows 7 and later will be unable to run on older versions > of Windows, because it will have a static dependency on bcrypt.dll and > the BCryptGenRandom function from that DLL. IOW, such a GDB will > refuse to run on older Windows systems. > > OTOH, if you build on Windows before 7, the produced binary will be > able to run on newer versions of Windows by dynamically loading > bcrypt.dll (when available) at run time, and using a fallback > otherwise. Hmm that sounds odd, usually the way the Windows SDK works is that this only depends on what you #define, not what you build on (especially _WIN32_WINNT) Christian