X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 2002:a05:622a:87:b0:2fb:c893:2a35 with SMTP id o7-20020a05622a008700b002fbc8932a35mr1125460qtw.94.1653501190923; Wed, 25 May 2022 10:53:10 -0700 (PDT) X-Received: by 2002:a81:d0c:0:b0:2f1:49ec:3eac with SMTP id 12-20020a810d0c000000b002f149ec3eacmr33486337ywn.451.1653501190714; Wed, 25 May 2022 10:53:10 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Wed, 25 May 2022 10:53:10 -0700 (PDT) In-Reply-To: <224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com> Injection-Info: google-groups.googlegroups.com; posting-host=46.123.254.94; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS NNTP-Posting-Host: 46.123.254.94 References: <224eb9dc-337e-f78f-ea4e-58bb15eb580b AT gmail DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com> Subject: Re: GNU pth during djgpp build time? From: "janezz55 (janezz55 AT gmail DOT com) [via djgpp AT delorie DOT com]" Injection-Date: Wed, 25 May 2022 17:53:10 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1686 Bytes: 1974 Lines: 7 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Surprisingly, configuring gcc with --enable-threads is actually possible, but > it did require a small patch to Pth. The executables it produces however, will > not run. A thread-aware libgcc will try to lock a mutex in > __register_frame_info(), which is invoked from crt0 before __crt1_startup(). > But locking a mutex involves a whole series of libc functions that rely on > things like _dos_ds, which are only initialized from __crt1_startup(). patch libgcc? Why would it want to lock a mutex anyway?