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=Cf5uxSNNhPfCyZWQ7FPXzJnSVpHUhFi2i0bu1pvAe78=; b=kPjQdK/zZKQ9 zp7nh8jDiFZilJurp8+lOKMzf1ywDQhPotRd4Y0az+Uj+MOxwSpa7XUdtCfS/+CONMTuBYpg+BkOx 5UxKh9JejccHqgsSrWxKQuNly2uAI//kXpO3fd2K9jw81KSHFSuCPaHXO8+eOLP8nTGlYkhIxMSPb hCHDvBTLV7msT6lReEPm5Pu5JZIk1cBRgDm6NHDa8xxptCfuYMEyPwWUpuQR3p7oDYGwfCzjjMWXJ qHkra8csF+SxYtayBr4ew4pcddb96od3vv2CqSfqWxCVCoq36PLoOR141MLUDNRN874O7jVUipI9c oXJ53Dm/ASp09HYXaRIcmA==; Date: Sat, 28 Jan 2023 12:45:47 +0200 Message-Id: <83tu0b9btw.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: (djgpp AT delorie DOT com) Subject: Re: DXE3 with std::vector References: <3b8f674c-bca3-c679-952e-f8ba5af196e7 AT gmail DOT com> <500850be-fd64-3f82-a1e1-929903084e9b AT gmail DOT com> <3d9271ae-266d-ee7b-853b-984857ced1c8 AT gmail DOT com> <83sffvbux1 DOT fsf AT gnu DOT org> <82cff092-6dfe-1dfc-7946-cdb84c44e11b AT gmail DOT com> <114b292b-7f6c-3b19-7e9a-88a261ee063a AT gmail DOT com> <83h6wbayya DOT fsf AT gnu DOT org> <834jsbavcp DOT fsf AT gnu DOT org> <83y1pn9ffg DOT fsf AT gnu DOT org> Reply-To: djgpp AT delorie DOT com > From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" > Date: Sat, 28 Jan 2023 12:51:21 +0300 > > On 1/28/23, Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com] > wrote: > >> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" > >> > >> Date: Sat, 28 Jan 2023 12:12:50 +0300 > >> > >> On 1/28/23, Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com] > >> wrote: > >> >> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" > >> >> > >> >> Date: Sat, 28 Jan 2023 11:07:07 +0300 > >> >> > >> >> This can be a show stopper, so I _can_ revert the whole patch: The > >> >> patch was made for the whole purpose of dxe3gen finding -lgcc (and > >> >> -lstdc++) automatically in the first place, and one can just do the > >> >> manual labor of copying them to $(DJDIR)/lib easily (a documentation > >> >> about it from someone would be nice.) > >> > > >> > Having "-L$(DJDIR)/lib" and using GCC to find the standard libraries > >> > are not contradicting goals, are they? The -L switch just says "look > >> > in that directory as well", it doesn't replace the standard > >> > directories. > >> > >> Well, try doing the following horrible -L : > >> -L/usr/local/cross-djgpp/lib/gcc/i586-pc-msdosdjgpp/3.4.6 > >> > >> because, unlike libc.a, libgcc.a isn't under $(DJDIR)/lib > >> at least not in cross- environments -- really do not know > >> about a native installation. That was the original issue. > > > > OK, but still: there should be no problem with having both on the > > command line, right? > > No, no problems. But detecting and correctly using -lgcc was the > original goal. But -L doesn't contradict that goal, does it? > Looks like this is becoming a hassle. Revert the patch and document > the -lgcc issue instead? (Even though I did like the result of the > patch where it does run..) I'm sorry I'm causing the hassle, but can we please not give up just yet, and see if we can have the cake and eat it, too? I'd like to see if there is a solution that both fixes the problem and is backward-compatible. See my other mail with further suggestions. Thanks.