X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JFiJ4ouLL5kJT5fPnvCGkAd+F1ygtR5acK5fOge6u1U=; b=F8ubTZ4brWwb BJNsaJiQI/kAlkKqSrDgxdsC40c6TYt3W71xeCiVp6WSS6PxOrvDULEFee+87CDcKffIAXdZo+08B vqPiGvKHJjiNc+oVq/Lk1Irm6Ol4UAxoDRpsUZFU9fXWh/nPhqAPzTjY3RaehVaEODoRT5LgiUQjA mR71aNxqOLZCeKuN6b2/NXkJqxH1vcz8IQDc8USWgi9Nxyb6Ml2YTA0BA/3yJOjG1ukPciCe+iSsA jZ9WcFHgUf5FgLFAznLQPJ1m+8enRkv0WogVlmxaXNwmKurwxll7skgPm4exttlJFRu2PHdZGHHAR Ovr3lsPGoXIoBxvuuZYS7g==; Date: Sat, 28 Jan 2023 22:04:38 +0200 Message-Id: <83wn568lyh.fsf@gnu.org> From: "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]" To: djgpp AT delorie DOT com In-Reply-To: <8257bbce-b49a-f36c-1fc8-17cf6b5aa83f@gmail.com> (djgpp AT delorie DOT com) Subject: Re: DXE3 with std::vector References: <835ycravjo DOT fsf AT gnu DOT org> <83zga39fil DOT fsf AT gnu DOT org> <83v8kr9bye DOT fsf AT gnu DOT org> <83lelmakwk DOT fsf AT gnu DOT org> <83h6waaium DOT fsf AT gnu DOT org> <83fsbuahj9 DOT fsf AT gnu DOT org> <673bbaa0-5a0d-25be-1f1b-724856ee4f0b AT gmail DOT com> <15bba6fc-1b9a-f709-7c7b-2fa3f133d5bb AT gmail DOT com> <834jsaa77b DOT fsf AT gnu DOT org> <8257bbce-b49a-f36c-1fc8-17cf6b5aa83f AT gmail DOT com> 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 > Date: Sat, 28 Jan 2023 19:12:06 +0100 > From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" > > > No, in a native installation libgcc and libstdc++ are in a directory > > different from libc. We just didn't support linking against those two > > libraries because AFAIU it was never needed by anyone, definitely in > > the case of libstdc++. > > On my end, libc and libstdc++ are in %DJDIR%\lib\. But I see libgcc is in > %DJDIR%\lib\gcc\djgpp\12\. libgcc should be in a version-specific directory under either lib/gcc or lib/gcc-lib. libstdc++ is normally also in that subdirectory, I don't know why you have it in lib. It is version-specific, so cannot be in the general lib directory. > It is probably possible to configure gcc/libstdc++ to place these in any > arbitrary location. I think it's best if dxe3gen and makefile writers have no > knowledge of a user's particular configuration, and simply leave it to gcc to > figure it out. Yes, that's true. No argument there. I'm just saying that if someone has some unusual (read: crazy) non-standard configuration, where libraries can be found via these two environment variables, we shouldn't break those unusual configurations.