diff --git a/arch/posix/CMakeLists.txt b/arch/posix/CMakeLists.txt index 907fb5dd9e..d50437de7a 100644 --- a/arch/posix/CMakeLists.txt +++ b/arch/posix/CMakeLists.txt @@ -104,7 +104,7 @@ elseif (CONFIG_NATIVE_LIBRARY) # no_builtin to avoid the compiler using builtin replacements for std library functions zephyr_compile_options( -nostdinc - -isystem ${COMPILER_OWN_INCLUDE_PATH} + #-isystem ${COMPILER_OWN_INCLUDE_PATH} "SHELL:-include ${ZEPHYR_BASE}/arch/posix/include/undef_system_defines.h" $ $ diff --git a/lib/libc/newlib/CMakeLists.txt b/lib/libc/newlib/CMakeLists.txt index 35c6a9b633..336b1cd86d 100644 --- a/lib/libc/newlib/CMakeLists.txt +++ b/lib/libc/newlib/CMakeLists.txt @@ -4,7 +4,7 @@ zephyr_library() zephyr_library_sources(libc-hooks.c) # Do not allow LTO when compiling libc-hooks.c file -set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $) +set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $;$) # Zephyr normally uses -ffreestanding, which with current GNU toolchains # means that the flag macros used by newlib 3.x to signal diff --git a/lib/libc/picolibc/CMakeLists.txt b/lib/libc/picolibc/CMakeLists.txt index 87fb0d9d8e..4540a6a421 100644 --- a/lib/libc/picolibc/CMakeLists.txt +++ b/lib/libc/picolibc/CMakeLists.txt @@ -4,7 +4,7 @@ zephyr_library() zephyr_library_sources(libc-hooks.c) # Do not allow LTO when compiling libc-hooks.c file -set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $) +set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS "$;$") # define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN # used by the network stack