My apologies if this has already been asked elsewhere.
I've run into an issue using the linker in CCSv5 (using version 5.1.0.09000). In my build configuration, when I select the "TMS470 Linker", it shows the command line options (currently looks something like ${command} ${flags} ${output_flag} ${output} ${inputs}). The ${inputs} tag seems to include all of the object and library files found in the project.
My issue is with respect to the order in which this automatic list is generated. My situation involves both compiling a project locally, and packaging up all the object files into a library archive to be compiled elsewhere. This seems to work fine for the most part - but an issue arises when compiling on the remote machine (from the library archive). The build process involves including other libraries (with the "-l" tag). One of these libraries defines a symbol that is already defined in my local libraries.
This is fine locally - the ${inputs} lists my own object files first, then includes the "-l" for the supplementary library file. Remotely, however, the "-l" link is included before my own library file.
I can fix this issue by removing the library file from the "File Search Path" list of included libraries and including it manually on the command line (in the "TMS470 Linker" menu, so the command line now looks like ${command} ${flags} ${output_flag} ${output} ${inputs} -l"otherlibfile.lib").
Is there any way to configure the order that files are included in the ${inputs} tag, or do I have to do it manually on the command line?