From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2087 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: feature request: flag to disable math library build Date: Thu, 11 Oct 2012 20:17:00 -0400 Message-ID: <20121012001700.GD254@brightrain.aerifal.cx> References: <5077024E.6080104@barfooze.de> <20121011181709.GK24157@port70.net> <20121011193738.GL24157@port70.net> <5077650F.6030307@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 1350001542 15051 80.91.229.3 (12 Oct 2012 00:25:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 00:25:42 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2088-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 12 02:25:49 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 1TMT4W-00026v-TA for gllmg-musl@plane.gmane.org; Fri, 12 Oct 2012 02:25:49 +0200 Original-Received: (qmail 23997 invoked by uid 550); 12 Oct 2012 00:25:42 -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 23989 invoked from network); 12 Oct 2012 00:25:42 -0000 Content-Disposition: inline In-Reply-To: <5077650F.6030307@barfooze.de> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2087 Archived-At: On Fri, Oct 12, 2012 at 02:32:15AM +0200, John Spencer wrote: > On 10/11/2012 09:37 PM, Szabolcs Nagy wrote: > > > >these are the math functions used by other parts > >of libc (mostly float scan and print): > > > >M = \ > >__fpclassifyl \ > >copysign \ > >copysignl \ > >fabs \ > >fmod \ > >fmodl \ > >frexp \ > >frexpl \ > >scalbn \ > >scalbnl \ > > > >so you need > > > >SRCS := $(SRCS) $(M:%=src/math/%.c) > > > >(not tested) > > > hmm i'm not entirely following. what is that SRCS line supposed to do ? > would that apply after having renamed math to .math ? No, after using the other trick to selectively remove part of SRCS.. > it's unfortunate, that these internal dependencies exist at all... The alternative would be bloat and code duplication. Rich