picolibc: Disable LTO while building picolibc bits
The compiler requires that much of the C library be built without using LTO so that various symbols are available for use by generated code, including things like memset and memcpy. Add -fno-lto when building both picolibc itself as well as the Zephyr interface bits. Closes: #81674 Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f786ecc075
commit
7962dcb288
@ -11,6 +11,8 @@ zephyr_library_sources(
|
||||
stdio.c
|
||||
)
|
||||
|
||||
zephyr_library_compile_options(-fno-lto)
|
||||
|
||||
# define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN
|
||||
# used by the network stack
|
||||
zephyr_compile_definitions(__LINUX_ERRNO_EXTENSIONS__)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user