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

Szabolcs Nagy nsz at port70.net
Wed May 4 13:16:56 EDT 2016


* Rich Felker <dalias at libc.org> [2016-05-04 12:33:29 -0400]:
> On Wed, May 04, 2016 at 04:28:18AM -0500, Rob Landley wrote:
> > Still no native toolchains. :)
> 
> In theory all you have to do to get a native toolchain is first build
> and install the cross toolchain so that the cross tools are in your
> path, then COMMON_CONFIG += --host=$(TARGET). I can test and see if it
> works.
> 
> Of course it's somewhat large to install on small systems like J2 but
> I think you could run it from the sdcard.

i tried it for x86_64 and with the following config.mak change

ifeq ($(NATIVE),yes)
COMMON_CONFIG += --host=$(TARGET)
OUTPUT = $(PWD)/output-native
BUILD_DIR = build-$(TARGET)-native
XGCC = $(TARGET)-gcc
PATH_ORIG := $(PATH)
export PATH = $(PWD)/output/bin:$(PATH_ORIG)
endif

make install && make install NATIVE=yes

built a native toolchain into output-native
(it still installs musl into a $(TARGET) subdir, but
i think that's just a matter of copying things around.)


More information about the J-core mailing list