Add option NO_FP_LIBC, which disables floating-point support in

*printf() and *scanf().  Currently, this reduces the size of libc.so
by 9K on i386.  But the real savings are for static binaries that use
*printf() or *scanf() but not strtod(); with an FP-disabled libc,
these binaries will not depend on the gdtoa routines, making each
binary about 22K smaller.
This commit is contained in:
das 2004-05-02 10:55:07 +00:00
parent 94b1a9eeaf
commit 603ccc870f

View File

@ -64,6 +64,9 @@ CFLAGS+= -DYP
.if !defined(NO_HESIOD_LIBC)
CFLAGS+= -DHESIOD
.endif
.if defined(NO_FP_LIBC)
CFLAGS+= -DNO_FLOATING_POINT
.endif
# If there are no machine dependent sources, append all the
# machine-independent sources: