Linker

Description

A data type that defines a set of linker configuration.

See Also

The CC task.

Parameters

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

Parameters specified as nested elements

Each of the nested elements may appear multiple times.

libset

A set of libraries to pass to the linker. See the LibSet data type for details.

linkerarg

A command-line argument to pass to the linker.

Examples

The following example configures the CC task to:

<linker name="gcc">
    <linkerarg value="-Xs"/>
    <libset libs="pthread, ml"/>
</linker>