From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13833 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH] Enable multilib support when building with musl-gcc Date: Thu, 21 Feb 2019 15:44:57 +0100 Message-ID: <20190221144456.GW21289@port70.net> References: <20190130213815.19267-1-larrowe.semaj11@gmail.com> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="88309"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: James Larrowe To: musl@lists.openwall.com Original-X-From: musl-return-13849-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 21 15:45:11 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gwpb5-000MmT-FV for gllmg-musl@m.gmane.org; Thu, 21 Feb 2019 15:45:11 +0100 Original-Received: (qmail 32164 invoked by uid 550); 21 Feb 2019 14:45:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 32146 invoked from network); 21 Feb 2019 14:45:08 -0000 Mail-Followup-To: musl@lists.openwall.com, James Larrowe Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:13833 Archived-At: * James Larrowe [2019-02-21 09:22:26 -0500]: > Ping. Is there anything wrong with this? It works for me. it breaks all targets that musl supports except x86_64 a multilib toolchain does not have separate include paths for different abis so even on x86_64, -m32 or -mx32 would use the wrong headers. > On Wed, Jan 30, 2019 at 4:38 PM James Larrowe > wrote: > > > Somewhat incomplete; enables using 32-bit musl-gcc > > on a 64-bit system > > > > Signed-off-by: James Larrowe > > --- > > tools/musl-gcc.specs.sh | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh > > index 30492574..a73e6656 100644 > > --- a/tools/musl-gcc.specs.sh > > +++ b/tools/musl-gcc.specs.sh > > @@ -23,7 +23,9 @@ libgcc.a%s %:if-exists(libgcc_eh.a%s) > > crtendS.o%s $libdir/crtn.o > > > > *link: > > --dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} > > %{rdynamic:-export-dynamic} > > +-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} \ > > + %{rdynamic:-export-dynamic} %{m64:-melf_x86_64} %{mx32:-melf32_x86_64} \ > > + %{m32:-melf_i386} > > > > *esp_link: > > > > -- > > 2.20.1 > > > >