summaryrefslogtreecommitdiff
path: root/config/libc/newlib.in
blob: a37eca7a1b1a3d83ca174ad57ea28226aa4bb071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# newlib options

## depends on BARE_METAL
##
## select LIBC_SUPPORT_THREADS_NONE
## select CC_CORE_PASSES_NEEDED if CANADIAN
## select CC_CORE_PASS_2_NEEDED if ! CANADIAN
##
## help Newlib is a C library intended for use on embedded systems. It is a
## help conglomeration of several library parts, all under free software
## help licenses that make them easily usable on embedded products. Newlib
## help is only available in source form. It can be compiled for a wide
## help array of processors, and will usually work on any architecture with
## help the addition of a few low-level routines.

source "config/versions/newlib.in"

# maybe older versions of newlib will support it too, but this
# needs to be checked
config NEWLIB_CXA_ATEXIT
    def_bool y
    depends on NEWLIB_2_0_or_later
    select LIBC_PROVIDES_CXA_ATEXIT

config NEWLIB_HAS_NANO_MALLOC
    def_bool y
    depends on NEWLIB_2_1_or_later

config NEWLIB_HAS_NANO_FORMATTED_IO
    def_bool y
    depends on NEWLIB_2_2_or_later