From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2093 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: feature request: flag to disable math library build Date: Sat, 13 Oct 2012 00:23:49 -0700 Message-ID: <20121013002349.540286e6.idunham@lavabit.com> References: <5077024E.6080104@barfooze.de> <20121011181709.GK24157@port70.net> <20121011193738.GL24157@port70.net> <20121011232858.GA254@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350113049 2319 80.91.229.3 (13 Oct 2012 07:24:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 07:24:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2094-gllmg-musl=m.gmane.org@lists.openwall.com Sat Oct 13 09:24:16 2012 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 1TMw4y-0008F7-Em for gllmg-musl@plane.gmane.org; Sat, 13 Oct 2012 09:24:12 +0200 Original-Received: (qmail 5328 invoked by uid 550); 13 Oct 2012 07:24:04 -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 5319 invoked from network); 13 Oct 2012 07:24:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=UmF5FB5+3VKG/Qy0oeA+hqVzttozq9L/CFE1Sdw5xmtOu6ORkn9lnKqCcinjUG61MRGInMA33v7qSetxNGH0iXZAY6Cp6qlRImwip2Xk4YsKbH9UogShmb+7XUQAsIxavZu9FQmSOV5dY0nsaEcJA4v/fioG4Dfsha+VgVwFgeg=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20121011232858.GA254@brightrain.aerifal.cx> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2093 Archived-At: On Thu, 11 Oct 2012 19:28:58 -0400 Rich Felker wrote: > On Thu, Oct 11, 2012 at 09:37:38PM +0200, Szabolcs Nagy wrote: > > these are the math functions used by other parts > > of libc (mostly float scan and print): > > > > M = \ > > so you need > > > > SRCS := $(SRCS) $(M:%=src/math/%.c) > > > > (not tested) > > Note that this breaks if any of the above functions ever depend on > other math functions or internal math modules, not to mention if the > set of math functions used by the other part of the library ever > changes. I'm generally opposed to this kind of feature switching > because it has huge maintenance cost keeping track of all possible > configurations and ensuring none of them are broken. I'd tend to consider src/math to be core components. And IIRC, src/complex built the last time I tried CVS pcc (but I could be misremembering!) However, C11 makes complex numbers optional, and there's currently no dependance on src/complex/ - would it make sense to allow /configure --disable-complex (via the filter-out rule)? What percent of the build time is that? -- Isaac Dunham