From e56052bb32d191e5de15645a38ac3071f12ace8d Mon Sep 17 00:00:00 2001 From: ccrause Date: Sun, 19 May 2024 14:17:00 +0200 Subject: [PATCH] Do not pass esp32c3.rom.newlib-time.ld to the linker, it causes the ROM version of _isatty_r to be linked instead of the newlib library version. --- compiler/systems/t_freertos.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/systems/t_freertos.pas b/compiler/systems/t_freertos.pas index a19c840d13..471b5d348f 100644 --- a/compiler/systems/t_freertos.pas +++ b/compiler/systems/t_freertos.pas @@ -1614,8 +1614,7 @@ begin if idf_version>=40300 then Info.ExeCmd[1]:=Info.ExeCmd[1]+' -T esp32c3.rom.api.ld'; - if idf_version>=40400 then - Info.ExeCmd[1]:=Info.ExeCmd[1]+' -T esp32c3.rom.newlib-time.ld'; + if idf_version<40400 then Info.ExeCmd[1]:=Info.ExeCmd[1]+' -L $IDF_PATH/components/esp32c3/ld -T esp32c3.peripherals.ld' else