config/libc/newlib.in.2
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Feb 21 23:39:46 2011 +0100 (2011-02-21)
changeset 2312 8b9938edd3d8
parent 2166 c1fe0639585a
child 2484 d1a8c2ae7946
permissions -rw-r--r--
libc/glibc: add fortify option

By default, recent versions of glibc and eglibc will build some
functions that take format strings (eg. printf, syslog...) with
run-time checks against some format string attacks. This is
called a fortified build.

Unfortunately, this fails somehow while building the instrumented
version of syslog, with some kind of circular dependency...

Disable fortified builds by default, and hide the enabling option
behind EXPERIMENTAL for daring users...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # newlib second-part options
     2 
     3 config LIBC_NEWLIB_IO_C99FMT
     4     bool
     5     prompt "Enable IOs on C99 formats"
     6     default n
     7     help
     8       Enable support for IOs on C99 formats.
     9 
    10 config LIBC_NEWLIB_IO_LL
    11     bool
    12     prompt "Enable IOs on long long"
    13     default n
    14     help
    15       Enable support for IOs on long long integers.
    16 
    17 config LIBC_NEWLIB_IO_FLOAT
    18     bool
    19     prompt "Enable IOs on floats and doubles"
    20     default n
    21     help
    22       Enable support for IOs on floating point
    23       values (float and double).
    24 
    25 config LIBC_NEWLIB_IO_LDBL
    26     bool
    27     prompt "Enable IOs on long doubles"
    28     default n
    29     depends on LIBC_NEWLIB_IO_FLOAT
    30     help
    31       Enable support for IOs on long doubles.