From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7131 Path: news.gmane.org!not-for-mail From: Neil Henning Newsgroups: gmane.linux.lib.musl.general Subject: Re: Patch to allow configure out-with source directory Date: Wed, 04 Mar 2015 16:52:28 +0000 Message-ID: <54F7384C.10005@duskborn.com> References: <54F6CF93.7010206@duskborn.com> <20150304164114.GJ23507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1425487978 22957 80.91.229.3 (4 Mar 2015 16:52:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 16:52:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7144-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 04 17:52:58 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 1YTCXU-0002iQ-96 for gllmg-musl@m.gmane.org; Wed, 04 Mar 2015 17:52:52 +0100 Original-Received: (qmail 5503 invoked by uid 550); 4 Mar 2015 16:52:50 -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 5205 invoked from network); 4 Mar 2015 16:52:42 -0000 X-Virus-Scanned: Debian amavisd-new at mfilter25-d.gandi.net X-Originating-IP: 217.43.71.126 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <20150304164114.GJ23507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7131 Archived-At: So I'm building musl as an ExternalProject from cmake - this problem solves the issue that the working directory from which the configure inside musl is called is different from the musl source directory. This allows the configure script to be called from an arbitrary path, and create the config.mak file in a separate folder to the musl source folder (but you are correct in that the remainder of the build still takes place within the musl source dir). -Neil. On 04/03/15 16:41, Rich Felker wrote: > On Wed, Mar 04, 2015 at 09:25:39AM +0000, Neil Henning wrote: >> Hey (new to the list), >> >> Below is a patch to allow the running of configure out-with the >> source directory (basically just looks up the path to the configure >> script, and then bases the -I includes in the check steps on this >> path). >> >> Any questions please get in touch, > Could you clarify what problem it solves? I don't think this is > anywhere near sufficient to support out-of-tree builds. That's a > difficult problem which nsz worked on in the past but didn't complete > because we kept running into corner cases that broke. > > Rich