Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 4 May 2016 19:16:56 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Cc: Rob Landley <rob@...dley.net>, j-core@...ore.org
Subject: Re: Re: [J-core] musl-cross-make / litecross improvements

* Rich Felker <dalias@...c.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.)

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.