From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8850 Path: news.gmane.org!not-for-mail From: Petr Hosek Newsgroups: gmane.linux.lib.musl.general Subject: Re: Support for out-of-tree build Date: Thu, 12 Nov 2015 22:35:07 +0000 Message-ID: References: <20151108004323.GE3818@brightrain.aerifal.cx> <20151108021630.GG8500@port70.net> <20151108022920.GL3818@brightrain.aerifal.cx> <20151111230848.GZ3818@brightrain.aerifal.cx> <20151112145026.GB18372@port70.net> <20151112203048.GB3818@brightrain.aerifal.cx> <20151112211024.GC18372@port70.net> <20151112215232.GC3818@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07eaa0a64ed405245f8ee5 X-Trace: ger.gmane.org 1447367735 10407 80.91.229.3 (12 Nov 2015 22:35:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 22:35:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8863-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 12 23:35:35 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Zx0Sq-0005BS-7f for gllmg-musl@m.gmane.org; Thu, 12 Nov 2015 23:35:32 +0100 Original-Received: (qmail 20435 invoked by uid 550); 12 Nov 2015 22:35:30 -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 20414 invoked from network); 12 Nov 2015 22:35:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=jb8AER/LDjLYGDqmRLIzBSvoYuSz+Jg3vOyqFbgAUF0=; b=mlFn/SQhsg4u1gXGWHXoO8OCHWzZsGtwe9RY+cji8hJZi69hlMX+BDUTRhGyR0DKyy P6nidPRWIbLYs0gIyAxNLOF36JI7QqsDgmoqZ+KJpLYOAikxHRAE/t3SHaLUFDKDswW+ 1ywRSmtu/NCN065OqtBCvJgNgnz9lYSZiALk4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=jb8AER/LDjLYGDqmRLIzBSvoYuSz+Jg3vOyqFbgAUF0=; b=ZFoZK2MtoQ2L90+3e18d8Icdh9HO9G38YsOxSOwtuunlpL+yr8RkG5mg9XksusK/Ed gOlZ2zc7U897v8k2jS9cLFL9rifTMsJkmHS6F6AT+VHrgUc/8cW+PlrcWJQzk6jRdXXD Nv6MGSVBgC8SyCvT6iDhVxTigi/jAz9rR43s1lzHGl5Bg+llXpUQjgFOUWW7nvnI1TEN wquGtHDaV0V6+iSRSqm1ytbnVrdN7WfvbDVaqTVuZU7Qi3WGYsrfbbfEUrq6udI13IYm xfhd47b8+oVdmJ6rW2psXOcs6uO/+PaqTLBtvfsKYj2fq+AY/SYIwnBxoetwHtS8b2IW 6Igw== X-Gm-Message-State: ALoCoQlFx/TaDsZMYrXKQllY/7DfGHkEI32V5gI51WCMjSCenU+kU19KTrx2zlq4TNImFJ1ykubd X-Received: by 10.13.218.68 with SMTP id c65mr14215680ywe.315.1447367717284; Thu, 12 Nov 2015 14:35:17 -0800 (PST) In-Reply-To: <20151112215232.GC3818@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8850 Archived-At: --94eb2c07eaa0a64ed405245f8ee5 Content-Type: text/plain; charset=UTF-8 > > What if we put the *.o files for arch asm in the arch dirs rather than > in the main src dirs. Is there some clean way we could write a rule to > remove the base .o files from OBJS when the arch-specific .o files are > there? > That's what I had in mind and I've already implemented it, but I couldn't get the *.sub files to work in that setup. However, if we replace them with Makefile fragments as you suggested it might it might solve that problem. Let me try that out and I'll let you know whether this is a way to go. --94eb2c07eaa0a64ed405245f8ee5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= What if we put the *.o files for arch asm in the arch dirs rather than
in the main src dirs. Is there some clean way we could write a rule to
remove the base .o files from OBJS when the arch-specific .o files are
there?

That's what I had in mind an= d I've already implemented it, but I couldn't get the *.sub files t= o work in that setup. However, if we replace them with Makefile fragments a= s you suggested it might it might solve that problem. Let me try that out a= nd I'll let you know whether this is a way to go.
--94eb2c07eaa0a64ed405245f8ee5--