From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2697 Path: news.gmane.org!not-for-mail From: Andre Renaud Newsgroups: gmane.linux.lib.musl.general Subject: Using musl in a cross-compiling environment Date: Wed, 30 Jan 2013 13:03:18 +1300 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1359504218 18171 80.91.229.3 (30 Jan 2013 00:03:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2013 00:03:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2698-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 30 01:03:58 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1U0L9h-00078c-Oh for gllmg-musl@plane.gmane.org; Wed, 30 Jan 2013 01:03:57 +0100 Original-Received: (qmail 30450 invoked by uid 550); 30 Jan 2013 00:03:39 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30397 invoked from network); 30 Jan 2013 00:03:30 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=dC3GG85mzThU5wSKCJpo7b5PBTnPbvvASOdcExVcVzw=; b=OeFd3ryuTPwdkBWJLPh/RuPrtbN7+hk6zNuCJa+ta2kxScXkgtyxGhwJ1iqovfArzh 3YdFYcmvPSB+CpvwKkEYgmdypcxWvhVvFxeYQp9d5v2HArH8hs7XYRxmXQvXWIJ4rVzD GpbPE17MRn19+S9709NHsmPWV6bc2bwXnIzwCYHrv29FsaezqL413s+CG4XYkTi1kEmm fJOcHJxwx2ECmGBQEFAP1RGIIWQr0rWiORPbabz0SQKjG3CXMMNDsfKUG4AVCFHftUUK Te9c1HS72P229uKI6p9tIJLWT55pXmttyNcXqR+Az3wenre7kP5wVmCxIkfxvEVZ4bhk 1/HA== X-Received: by 10.60.172.200 with SMTP id be8mr2365931oec.0.1359504198711; Tue, 29 Jan 2013 16:03:18 -0800 (PST) X-Gm-Message-State: ALoCoQkN2ci60Aad6+ENTMRnr0+0SlOFqYoHfGxM3LuN62aJTwOjEpjnkT9TxKPyZK8eBRSiuJSf Xref: news.gmane.org gmane.linux.lib.musl.general:2697 Archived-At: Hi, We're investigating moving some of our future projects over to using musl. All of our development is done in a cross-compiling environment (hosted on x86_64, targeting various ARM platforms). We've done some preliminary testing, and it has all gone well. However when we come to start cross compiling third party packages, we generally run into various minor issues. Mostly it is around getting configure to work properly, pick up the correct compiler, and pass through the appropriate flags. How do you guys normally cope with this? I know of the musl-gcc command, but unfortunately when you're cross compiling you generally need to have all of your commands with a similar prefix (ie: arm-none-linux-gnueabi-gcc, arm-none-linux-gnueabi-strip etc...) I thought of creating a bin directory with a bunch of scripts, which have the same name as the original commands, and simply put the '-spec' line in there, similar to musl-gcc. Does anyone have any comments on how this is best achieved? Regards, Andre