From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4547 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 14:04:10 -0500 Message-ID: <20140206190410.GJ15627@brightrain.aerifal.cx> References: <52F3C329.6040208@f-prot.com> <20140206173932.GB1685@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 1391713458 13113 80.91.229.3 (6 Feb 2014 19:04:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2014 19:04:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4551-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 06 20:04:26 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 1WBUFM-00046q-O5 for gllmg-musl@plane.gmane.org; Thu, 06 Feb 2014 20:04:24 +0100 Original-Received: (qmail 18283 invoked by uid 550); 6 Feb 2014 19:04:23 -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 18272 invoked from network); 6 Feb 2014 19:04:23 -0000 Content-Disposition: inline In-Reply-To: <20140206173932.GB1685@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4547 Archived-At: On Thu, Feb 06, 2014 at 06:39:32PM +0100, Szabolcs Nagy wrote: > * Oliver Schneider [2014-02-06 17:15:21 +0000]: > > however, then I switch to an empty directory and run this: > > > > ../musl/configure --disable-shared > > > > I get: > > > > using compiler runtime libraries: -lgcc -lgcc_eh > > checking whether compiler's long double definition matches float.h... no > > ../musl/configure: error: unsupported long double type > > > > Are out-of-tree builds generally not supported, or am I doing something > > wrong? > > not supported (yet) > > it probably wouldn't be hard to add though > > (eg the paths in the makefile can be prefixed with the build path > and the generated config.mak can set that prefix up, but i'm not > sure what's the best way to detect the path and there might be > issues around the generated alltypes.h and include/bits) It's not as easy as it sounds because of the way implicit % rules work. I don't know how to get them to work when adding a leading path. If someone can figure out how to do this without doing anything horribly ugly/bloated/slow in the makefile, I'm open to adding support for out-of-tree builds this way. Rich