summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/TI.cmake
diff options
context:
space:
mode:
authorJosef Angstenberger <code@jtxa.de>2020-07-11 14:32:09 (GMT)
committerJosef Angstenberger <code@jtxa.de>2020-07-14 00:23:58 (GMT)
commit763b44e51909674f87bbacc8fb3400254fad074c (patch)
tree28e291223ec1707ca7190c7d207a8f0519261fc3 /Modules/Compiler/TI.cmake
parentef528f10bf7e9fe6a2c0f043102c24e76212f542 (diff)
downloadCMake-763b44e51909674f87bbacc8fb3400254fad074c.zip
CMake-763b44e51909674f87bbacc8fb3400254fad074c.tar.gz
CMake-763b44e51909674f87bbacc8fb3400254fad074c.tar.bz2
Compiler/TI: Avoid usage of ranlib
If a ranlib executable has been found it is used for finishing an archive. In case of the TI compiler the archive file gets corrupted. Fixes: #14876
Diffstat (limited to 'Modules/Compiler/TI.cmake')
-rw-r--r--Modules/Compiler/TI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/TI.cmake b/Modules/Compiler/TI.cmake
index 5e1e1e6..59dd585 100644
--- a/Modules/Compiler/TI.cmake
+++ b/Modules/Compiler/TI.cmake
@@ -27,6 +27,7 @@ macro(__compiler_ti lang)
set(CMAKE_${lang}_ARCHIVE_CREATE "<CMAKE_AR> qr <TARGET> <OBJECTS>")
set(CMAKE_${lang}_ARCHIVE_APPEND "<CMAKE_AR> qa <TARGET> <OBJECTS>")
+ set(CMAKE_${lang}_ARCHIVE_FINISH "")
set(CMAKE_${lang}_LINK_EXECUTABLE "<CMAKE_${lang}_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET_NAME>.map <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>")
endmacro()