From 89317915d9add953d000e6c4b962b7fbb4190c1d Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Thu, 2 Jun 2016 10:53:51 +0200 Subject: [PATCH] Compiler/TI: Pass libraries as last part to linker If e.g. libc.a is passed before any objects the linker raises the follwing warning: cannot resolve archive libc.a to a compatible library, as no input files have been encountered In the end the library is skipped and missing symbols occur. Signed-off-by: Alexander Stein --- Modules/Compiler/TI-C.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake index 479666c72..ebc79f424 100644 --- a/Modules/Compiler/TI-C.cmake +++ b/Modules/Compiler/TI-C.cmake @@ -7,4 +7,4 @@ set(CMAKE_C_CREATE_PREPROCESSED_SOURCE " --preproc_only --c_fi set(CMAKE_C_COMPILE_OBJECT " --compile_only --c_file= --output_file=") set(CMAKE_C_ARCHIVE_CREATE " -r ") -set(CMAKE_C_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") +set(CMAKE_C_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ")