Skip to content

Commit

Permalink
[nrf fromtree] libc/picolibc: Remove -T /dev/null linker arguments
Browse files Browse the repository at this point in the history
Now that the gcc compiler driver uses the -T flag instead of -Wl,-T, we can
remove the hack here that kept the picolibc specs file from inserting the
picolibc linker script.

Signed-off-by: Keith Packard <[email protected]>
(cherry picked from commit 4e7930b)
  • Loading branch information
keith-packard authored and rlubos committed Jul 10, 2023
1 parent 624c208 commit 28a3fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libc/picolibc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(NOT CONFIG_PICOLIBC_USE_MODULE)

zephyr_compile_options(--specs=picolibc.specs)
zephyr_compile_definitions(_POSIX_C_SOURCE=200809)
zephyr_libc_link_libraries(-T/dev/null --specs=picolibc.specs c -lgcc)
zephyr_libc_link_libraries(--specs=picolibc.specs c -lgcc)
if(CONFIG_PICOLIBC_IO_FLOAT)
zephyr_compile_definitions(PICOLIBC_DOUBLE_PRINTF_SCANF)
zephyr_link_libraries(-DPICOLIBC_DOUBLE_PRINTF_SCANF)
Expand Down

0 comments on commit 28a3fca

Please sign in to comment.