From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11052 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make build script. Date: Fri, 17 Feb 2017 12:53:22 +0100 Message-ID: <20170217115321.GH12395@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1487332418 21569 195.159.176.226 (17 Feb 2017 11:53:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2017 11:53:38 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) Cc: musl To: Rob Landley Original-X-From: musl-return-11067-gllmg-musl=m.gmane.org@lists.openwall.com Fri Feb 17 12:53:31 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ceh6R-0005Be-F1 for gllmg-musl@m.gmane.org; Fri, 17 Feb 2017 12:53:31 +0100 Original-Received: (qmail 29907 invoked by uid 550); 17 Feb 2017 11:53:34 -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 29888 invoked from network); 17 Feb 2017 11:53:33 -0000 Mail-Followup-To: Rob Landley , musl Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:11052 Archived-At: * Rob Landley [2017-02-16 16:57:54 -0600]: > > git clone https://github.com/richfelker/musl-cross-make > cd musl-cross-make > ~/mcm-buildall.sh > > And then wait a long time and the result should wind up in "output". nice > #!/bin/bash isn't it posix sh compatible? > PATH="$LP" make OUTPUT="$OUTPUT" TARGET="$TARGET" \ > GCC_CONFIG="--disable-nls --disable-libquadmath --disable-decimal-float $GCC_CONFIG" COMMON_CONFIG="$COMMON_CONFIG" \ > install -j$(nproc) i didnt know about -j$(nproc), what does it do? > for i in i686:: \ > armv5l:eabihf:--with-arch=armv5t armv7l:eabihf:--with-arch=armv7-a \ > "armv7m:eabi:--with-arch=armv7-m --with-mode=thumb --disable-libatomic --enable-default-pie" \ > armv7r:eabihf:--with-arch=armv7-r \ > armv8l:eabihf:--with-arch=armv8-a i486:: sh2eb:fdpic:--with-cpu=mj2 \ > mipsel:: mips:: powerpc:: sh4:: microblaze:: mips64:: powerpc64:: \ > s390x:: x86_64:: aarch64 is missing (and i don't think it's useful to build both armv7l and armv8l toolchains: the former can produce binaries for armv8-a targets just fine and i don't know about any code in the toolchain target libs that would be different on armv8-a, well may be the new float to int rounding and acquire/release atomics insns could be used but that's about it)