libc/newlib: add option to compile support for long long IOs

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2010-10-23 00:53:41 +02:00
parent d7e88461e6
commit 1a0ab9ad55
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# newlib second-part options
config LIBC_NEWLIB_IO_LL
bool
prompt "Enable IOs on long long"
default n
help
Enable support for IOs on long long integers.
config LIBC_NEWLIB_IO_FLOAT
bool
prompt "Enable IOs on floats and doubles"

View File

@ -68,6 +68,11 @@ do_libc_start_files() {
CT_DoLog EXTRA "Configuring C library"
if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-long-long" )
else
newlib_opts+=( "--disable-newlib-io-long-long" )
fi
if [ "${CT_LIBC_NEWLIB_IO_FLOAT}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-float" )
if [ "${CT_LIBC_NEWLIB_IO_LDBL}" = "y" ]; then