Skip to content

Commit 28a3fca

Browse files
keith-packardrlubos
authored andcommitted
[nrf fromtree] libc/picolibc: Remove -T /dev/null linker arguments
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)
1 parent 624c208 commit 28a3fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libc/picolibc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(NOT CONFIG_PICOLIBC_USE_MODULE)
1313

1414
zephyr_compile_options(--specs=picolibc.specs)
1515
zephyr_compile_definitions(_POSIX_C_SOURCE=200809)
16-
zephyr_libc_link_libraries(-T/dev/null --specs=picolibc.specs c -lgcc)
16+
zephyr_libc_link_libraries(--specs=picolibc.specs c -lgcc)
1717
if(CONFIG_PICOLIBC_IO_FLOAT)
1818
zephyr_compile_definitions(PICOLIBC_DOUBLE_PRINTF_SCANF)
1919
zephyr_link_libraries(-DPICOLIBC_DOUBLE_PRINTF_SCANF)

0 commit comments

Comments
 (0)