From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10000 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [J-core] musl-cross-make / litecross improvements Date: Wed, 4 May 2016 19:16:56 +0200 Message-ID: <20160504171656.GY22574@port70.net> References: <20160503044835.GA5517@brightrain.aerifal.cx> <5729C0B2.5080707@landley.net> <20160504163329.GR21636@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1462382232 20867 80.91.229.3 (4 May 2016 17:17:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 May 2016 17:17:12 +0000 (UTC) Cc: Rob Landley , j-core@j-core.org To: musl@lists.openwall.com Original-X-From: musl-return-10013-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 04 19:17:12 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ay0QC-0003Ax-0n for gllmg-musl@m.gmane.org; Wed, 04 May 2016 19:17:12 +0200 Original-Received: (qmail 26566 invoked by uid 550); 4 May 2016 17:17:08 -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 26538 invoked from network); 4 May 2016 17:17:08 -0000 Mail-Followup-To: musl@lists.openwall.com, Rob Landley , j-core@j-core.org Content-Disposition: inline In-Reply-To: <20160504163329.GR21636@brightrain.aerifal.cx> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:10000 Archived-At: * Rich Felker [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.)