A data type that defines a set of linker configuration.
The CC task.
Attribute | Description | Required |
name | The name of the toolset to use. See the CC task for a list of supported toolsets. | No |
if | Only use this linker configuration if the specified property is set. | No |
unless | Do not use this linker configuration if the specified property is set. | No |
Each of the nested elements may appear multiple times.
A set of libraries to pass to the linker. See the LibSet data type for details.
A command-line argument to pass to the linker.
The following example configures the CC task to:
-Xs
command-line argument to the linker.
pthread
and ml
libraries when linking.
<linker name="gcc"> <linkerarg value="-Xs"/> <libset libs="pthread, ml"/> </linker>