From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 5AAF2394C007 for ; Mon, 28 Sep 2020 15:18:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5AAF2394C007 Received: by mail-wr1-x42c.google.com with SMTP id z4so1806185wrr.4 for ; Mon, 28 Sep 2020 08:18:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GPUO9+FT5f/p7FY1vrSWRXJsRizny4HdN5Q3RsbVxgo=; b=GfvNjat7GxAosb9b0al3YKm+nvvtGms8V03w4cwspSwOtI0MrZJ5GJHCLsl5LJhlLV DfLBbeCKMmgdgxfLDJDhSxiBtAaxZqIt9nBYqX+NpimUKc7PMlSm95RbAbgv7xbt4Mfm gLivPokmjiUTG8iWrCqgOMjuMMYJiavnQlGKDtpB6hL5SzwvByuheSznV/9eEDiPM/Vr 90HwI3lQRJtBGO1amk9yn80QL70Wc/4L3kOvuGal31y/cIFozOhkUqsGgkOcrAKA9hO1 ZegvztKZhH9idZ6MeFjR8EI4jlpStQXe6aFxpIqcAA2miiox4OAKo6ubSFFy9n+OOSRo EV8A== X-Gm-Message-State: AOAM532l2F85N4gSBKmIzlaiACCidpPD5CxL1LpWFEw9o5jXNnDQPyHJ guo9QldSjhKSpxbFlRBW9kAn23PyKhrjlX7XZxCzZTcd8oxK8Nos X-Google-Smtp-Source: ABdhPJx+xV5m6JskCrG232c+eStZlZ/sMCElzsFj/6wh1fLrKix5MPLNfNV4yyyPBfQl0xLuTD7SHz16V64QGJYDu1c= X-Received: by 2002:adf:8b48:: with SMTP id v8mr2271075wra.21.1601306306165; Mon, 28 Sep 2020 08:18:26 -0700 (PDT) MIME-Version: 1.0 References: <833632m10q.fsf@gnu.org> <83zh5aklls.fsf@gnu.org> In-Reply-To: <83zh5aklls.fsf@gnu.org> From: Christian Biesinger Date: Mon, 28 Sep 2020 17:17:49 +0200 Message-ID: Subject: Re: Unable to build GDB on Windows To: Eli Zaretskii Cc: simon.cook@embecosm.com, Reuben Thomas via Gdb Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-18.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2020 15:18:28 -0000 On Mon, Sep 28, 2020 at 4:44 PM Eli Zaretskii via Gdb 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