Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Oct 2012 21:37:38 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: feature request: flag to disable math library build

* Szabolcs Nagy <nsz@...t70.net> [2012-10-11 20:17:09 +0200]:
> 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)

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)

Powered by blists - more mailing lists

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