From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3890 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Build system adjustments for subarchs Date: Tue, 13 Aug 2013 21:53:29 -0400 Message-ID: <20130814015329.GI221@brightrain.aerifal.cx> References: <20130814010617.GA16011@brightrain.aerifal.cx> <520AE098.4010106@gentoo.org> 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 1376445220 17421 80.91.229.3 (14 Aug 2013 01:53:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 01:53:40 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3894-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 14 03:53:42 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 1V9QHO-00008l-NJ for gllmg-musl@plane.gmane.org; Wed, 14 Aug 2013 03:53:42 +0200 Original-Received: (qmail 17884 invoked by uid 550); 14 Aug 2013 01:53:42 -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 17876 invoked from network); 14 Aug 2013 01:53:42 -0000 Content-Disposition: inline In-Reply-To: <520AE098.4010106@gentoo.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3890 Archived-At: On Wed, Aug 14, 2013 at 03:42:48AM +0200, Luca Barbato wrote: > I'd just explicitly group files by the most selective so > > ARMEL+=${list of objects that work on el doesn't matter what} > ARMHF+=${list of objects that work on hf doesn't matter what} > ARMEB+=${list of objects that work on eb doesn't matter what} > > ARMHFEL+=$(ARMEL) $(ARMHF) ${other stuff} > ARMHFEB+=$(ARMEB) $(ARMHF) ${different stuff} > > OBJS+=$($(targetarch)) > > And give up on having automagic fallbacks. The problem is that it's hard to integrate this with the existing source-tree-based arch logic, which needs to know whether to build or not to build the corresponding .c file. Just adding arch-specific files won't do anything to turn off building of those .c files. It also doesn't seem to scale well to multiple archs that need this sort of logic... Rich