Reputation: 1
I'm using ARMCC toolchain in a cmake job. as my experience,when using armlink to link the object files and libraries, if the libraries is packed up by armar -rc or other options.Anyway, in the last link command, we need to add a suffix "(*)" for the libraries so that armlink can treat the libraries the same as objects. but in the toolchain file. the link command is written as:
set(CMAKE_${lang}_LINK_EXECUTABLE "<CMAKE_LINKER> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS> -o <TARGET> --list <TARGET_BASE>.map")
I can't figure out a way to add a suffix to the libraries,at the same time when using armar to packup the libraries there is no this suffix"(*)"
armlink --partial can solve this problem in another aspect,but I hope there is a way to add suffix only in this link command. Thx!
Upvotes: 0
Views: 369