Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 5 Mar 2016 21:33:20 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Problem with musl-gcc script. Is it bad installation?

On Sun, Mar 06, 2016 at 01:20:53PM +1100, James B wrote:
> 
> On Sun, 6 Mar 2016 02:18:25 +0100
> Szabolcs Nagy <nsz@...t70.net> wrote:
> 
> > 
> > gcc -m32 is a hack.. you will find more brokenness
> > if you keep using it instead of using an i386
> > cross toolchain.
> > 
> 
> I use this spec file running 32-bit musl on 64-bit env ... it seems to work for making simple binaries.
> (PS: there are hardcoded paths there, I installed 32-bit musl to /usr/musl32).
> 
> cheers!
> 
> -- 
> James B <jamesbond3142@...il.com>

> *asm:
> --32
> 
> %rename cpp_options old_cpp_options
> 
> *cpp_options:
> -nostdinc -isystem /usr/musl32/include -isystem include%s %(old_cpp_options)
> 
> *cc1:
> %(cc1_cpu) -m32 -nostdinc -isystem /usr/musl32/include -isystem include%s
> 
> *link_libgcc:
> -L/usr/musl32/lib -L .%s
> 
> *libgcc:
> 32/libgcc.a%s %:if-exists(32/libgcc_eh.a%s)
> 
> *startfile:
> %{!shared: /usr/musl32/lib/%{pie:S}crt1.o} /usr/musl32/lib/crti.o %{shared|pie:crtbeginS.o%s;:32/crtbegin.o%s}
> 
> *endfile:
> %{shared|pie:crtendS.o%s;:32/crtend.o%s} /usr/musl32/lib/crtn.o
> 
> *link:
> -m elf_i386 -dynamic-linker /ld-musl-i386.so.1 -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}

That should be /lib/ld-musl-i386.so.1

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.