diff --git a/cmake/linker/ld/target.cmake b/cmake/linker/ld/target.cmake index 9523f429854..8fd66a23493 100644 --- a/cmake/linker/ld/target.cmake +++ b/cmake/linker/ld/target.cmake @@ -57,7 +57,7 @@ endmacro() # Force symbols to be entered in the output file as undefined symbols function(toolchain_ld_force_undefined_symbols) foreach(symbol ${ARGN}) - zephyr_link_libraries(-u${symbol}) + zephyr_link_libraries(${LINKERFLAGPREFIX},-u,${symbol}) endforeach() endfunction()