From 5dec322f3385ae7642f898a1e9d39affb79ca5e6 Mon Sep 17 00:00:00 2001 From: Josef Angstenberger Date: Sat, 11 Jul 2020 18:19:34 +0200 Subject: Compiler/TI: Add compiler flags to linker By adding the compiler flags via `` to the linker call, the linker can decide which default library to use. CMake replaces `` by the content of `CMAKE__FLAGS`. So any relevant flag needs to be defined in this variable, preferably in a toolchain file. The compiler flags have to be specified before the `--run_linker` flag and the linker flags afterwards. Replaces Merge-request !4890 --- Modules/Compiler/TI.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/TI.cmake b/Modules/Compiler/TI.cmake index 59dd585..c985b96 100644 --- a/Modules/Compiler/TI.cmake +++ b/Modules/Compiler/TI.cmake @@ -29,7 +29,7 @@ macro(__compiler_ti lang) set(CMAKE_${lang}_ARCHIVE_APPEND " qa ") set(CMAKE_${lang}_ARCHIVE_FINISH "") - set(CMAKE_${lang}_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") + set(CMAKE_${lang}_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") endmacro() set(CMAKE_LIBRARY_PATH_FLAG "--search_path=") -- cgit v0.12