Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Oct 2012 20:17:00 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: feature request: flag to disable math library build

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

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.