From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2079 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: feature request: flag to disable math library build Date: Thu, 11 Oct 2012 20:17:09 +0200 Message-ID: <20121011181709.GK24157@port70.net> References: <5077024E.6080104@barfooze.de> 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 1349979442 26143 80.91.229.3 (11 Oct 2012 18:17:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2012 18:17:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2080-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 11 20:17:30 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 1TMNK4-0000xe-6T for gllmg-musl@plane.gmane.org; Thu, 11 Oct 2012 20:17:28 +0200 Original-Received: (qmail 19737 invoked by uid 550); 11 Oct 2012 18:17:21 -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 19729 invoked from network); 11 Oct 2012 18:17:21 -0000 Content-Disposition: inline In-Reply-To: <5077024E.6080104@barfooze.de> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2079 Archived-At: * John Spencer [2012-10-11 19:30:54 +0200]: > for this kind of testing it would be advantageous if i could disable > the math library entirely (since it is completely unnecessary), > which accounts for roughly 50% of the build time. > > this might also be an option desired by ppl that use tcc or pcc. > > maybe --disable-math ? there is already an option for this: mv src/math src/.math now you disabled math if you don't like such hacks then you can add SRCS:=$(filter-out src/complex/%,$(SRCS)) SRCS:=$(filter-out src/math/%,$(SRCS)) to your config.mak i'm not sure how safe is this: libc uses some math functions (at least stdio uses frexpl for printf)