diff --git a/SoC/gd32vf103/Common/npk.yml b/SoC/gd32vf103/Common/npk.yml index 05737aa5..e51d119f 100644 --- a/SoC/gd32vf103/Common/npk.yml +++ b/SoC/gd32vf103/Common/npk.yml @@ -329,7 +329,7 @@ buildconfig: - flags: -u __on_exit_args condition: $( startswith(${stdclib}, "newlib") ) # for clang, newlib_nano still need to define symbol _printf_float to make link pass - - flags: -lc_nano -u _printf_float + - flags: -lc_nano -lclang_rt.builtins -u _printf_float condition: $( ${stdclib} == "newlib_nano" ) - flags: -lsemihost condition: $( ${semihost} == 1 ) diff --git a/SoC/gd32vw55x/Common/npk.yml b/SoC/gd32vw55x/Common/npk.yml index 9d51a0d4..1b0c95ab 100644 --- a/SoC/gd32vw55x/Common/npk.yml +++ b/SoC/gd32vw55x/Common/npk.yml @@ -297,7 +297,7 @@ buildconfig: - flags: -u __on_exit_args condition: $( startswith(${stdclib}, "newlib") ) # for clang, newlib_nano still need to define symbol _printf_float to make link pass - - flags: -lc_nano -u _printf_float + - flags: -lc_nano -lclang_rt.builtins -u _printf_float condition: $( ${stdclib} == "newlib_nano" ) - flags: -lsemihost condition: $( ${semihost} == 1 )