[J-core] [musl] Re: musl-cross-make / litecross improvements

Rob Landley rob at landley.net
Wed May 4 17:59:02 EDT 2016



On 05/04/2016 06:10 AM, Szabolcs Nagy wrote:
> * Rob Landley <rob at landley.net> [2016-05-04 04:28:18 -0500]:
>> On 05/02/2016 11:48 PM, Rich Felker wrote:
>>> I've made a number of improvements and fixes to musl-cross-make which
>>> are in the upstream repo now, based on bug reports I got:
>>>
>>> - Spurious dependency on flex (upstream's fault, worked around)
>>> - Spurious dependency on texinfo (ditto)
>>> - Ability to use pre-installed gmp/mpc/mpfr libs
>>> - Config examples for static linking, no-debug builds.
>>>
>>> https://github.com/richfelker/musl-cross-make
>>>
>>> A few things I still plan to add at some point:
>>
>> Still no native toolchains. :)
>>
> 
> for native you need a musl based host
> at which point you can use a musl based
> distro that provides native toolchains.

No, you just need to build a musl based cross compiler and then build
_another_ musl based cross compiler with the first one. (Basically a
canadian cross except you use the same target twice.)

The trick is disabling gcc's "oh, I'm native compiling, let me do a
half-assed job" detection logic, which is why I had
"x86_64-unknown-linux" and "x86_64-walrus-linux" targets when I did it.
So the tuples wouldn't match. :)

Rob


More information about the J-core mailing list