arch/arc: Add -mcpu flag to TOOLCHAIN_LD_FLAGS

Make sure the linker knows what the target is, in case it needs to find
additional target-specific libraries (like picolibc).

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2022-10-17 11:52:47 -07:00 committed by Carles Cufí
parent 2d1d309936
commit fc3f1480c5

View file

@ -9,4 +9,4 @@ if(NOT DEFINED GCC_ARC_TUNED_CPU)
endif()
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_ARC_TUNED_CPU})
list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=${GCC_ARC_TUNED_CPU})