Attribute | Description | Required |
---|---|---|
output | The name of the library. A platform specific ending and prefix might be added to this name automatically by the linker where appilcable (for example lib<name>.a, <name>.dll, <name>.dylib <name>.lib) | No. Default:
"a.out" |
debug | true turns on debugging symbols. false optimizes for release. Exactly what is done is determined by the command sequence defined for this linker. | No. Default: "true" |
os |
Override the detected OS to use another linker definition. This might be handy when using different compiler suites on the same machine and build script. | No. Default: detected OS name |
An ant FileSet which selects all object files to link into the library file.. It can be accessed using an arglist with the name="objfiles".
<linkexecutable output="bin/test-linker}">This will link all files in obj/test-linker together with the library nc5 and place the resulting file in bin/test-linker.exe or bin/test-linker
<objfiles dir="obj/test-linker" includes="**/*"/>
<libpath>
<pathelement path="build/lib"/>
</libpath>
<lib name="nc5"/>
</linkexecutable>