From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4553 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Out-of-tree builds Date: Thu, 6 Feb 2014 20:07:55 -0500 Message-ID: <20140207010755.GL15627@brightrain.aerifal.cx> References: <52F3C329.6040208@f-prot.com> <20140206173932.GB1685@port70.net> <20140206190410.GJ15627@brightrain.aerifal.cx> <20140206232706.GC1685@port70.net> <20140206233121.GD1685@port70.net> <20140207010135.GE1685@port70.net> 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 1391735287 6109 80.91.229.3 (7 Feb 2014 01:08:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 01:08:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4557-gllmg-musl=m.gmane.org@lists.openwall.com Fri Feb 07 02:08:13 2014 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 1WBZvM-0003gH-7S for gllmg-musl@plane.gmane.org; Fri, 07 Feb 2014 02:08:08 +0100 Original-Received: (qmail 21581 invoked by uid 550); 7 Feb 2014 01:08:07 -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 21573 invoked from network); 7 Feb 2014 01:08:07 -0000 Content-Disposition: inline In-Reply-To: <20140207010135.GE1685@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4553 Archived-At: On Fri, Feb 07, 2014 at 02:01:36AM +0100, Szabolcs Nagy wrote: > +dirhack: > + mkdir -p $(sort $(dir $(OBJS))) crt include lib tools How does this avoid having the $(M) source root from $(OBJS)? > include/bits: > @test "$(ARCH)" || { echo "Please set ARCH in config.mak before running make." ; exit 1 ; } > - ln -sf ../arch/$(ARCH)/bits $@ > + ln -sf ../$(M)/arch/$(ARCH)/bits $@ Having ../ prior to a possibly-absolute path $(M) seems wrong. Rich