From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3112 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Request for ideas on arch-specific musl-gcc specfile additions Date: Mon, 15 Apr 2013 00:49:13 -0400 Message-ID: <20130415044913.GU20323@brightrain.aerifal.cx> References: <20130415013154.GA7440@brightrain.aerifal.cx> <516B82A6.2020800@eservices.virginia.edu> 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 1366001367 1464 80.91.229.3 (15 Apr 2013 04:49:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 04:49:27 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3116-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 15 06:49:31 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 1URbM6-0005xc-Pl for gllmg-musl@plane.gmane.org; Mon, 15 Apr 2013 06:49:27 +0200 Original-Received: (qmail 18162 invoked by uid 550); 15 Apr 2013 04:49:26 -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 18154 invoked from network); 15 Apr 2013 04:49:25 -0000 Content-Disposition: inline In-Reply-To: <516B82A6.2020800@eservices.virginia.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3112 Archived-At: On Mon, Apr 15, 2013 at 12:31:34AM -0400, Zvi Gilboa wrote: > 2) add arch-specific variables in the relevant places and set them > from outside, possibly by executing musl-gcc.specs.sh from within an > arch-specific shell script. For instance: > > *cpp_options: > $ARCH_SPECIFIC_CFLAGS -nostdinc -isystem $incdir %(old_cpp_options) Hmm, I had forgotten it was a shell script and not just a sed script or something doing the replacements. So we could just put something like: $(case "$ARCH" in mips*) echo "mips stuff here" ;; powerpc*) echo "ppc stuff here" ;; easc) Does that work? Might have to add $ARCH to the args to the script, but otherwise it seems ok. Rich