net.sf.antcontrib.cpptasks.gcc.cross

Class LdLinker

Implemented Interfaces:
Cloneable, Linker, Processor

public final class LdLinker
extends AbstractLdLinker

Adapter for the 'ld' linker
Author:
Curt Arnold

Field Summary

Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Method Summary

protected Object
clone()
static LdLinker
getInstance()
Linker
getLinker(LinkType type)
Gets the linker for the specified link type.
void
link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
Performs a link using a command line linker

Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker

addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive, isHPUX, prepareArguments

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker

addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandFileSwitch, getIdentifier, getLibtoolLinker, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker

addVersionFiles, bid, changeEnvironment, createConfiguration, createConfiguration, getLibraryKey, getOutputFileNames

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Method Details

clone

protected Object clone()
            throws CloneNotSupportedException
Overrides:
clone in interface AbstractProcessor

getInstance

public static LdLinker getInstance()

getLinker

public Linker getLinker(LinkType type)
Gets the linker for the specified link type.
Specified by:
getLinker in interface Linker
getLinker in interface Processor
Returns:
appropriate linker or null, will return this if this linker can handle the specified link type

link

public void link(CCTask task,
                 File outputFile,
                 String[] sourceFiles,
                 CommandLineLinkerConfiguration config)
            throws BuildException
Performs a link using a command line linker
Overrides:
link in interface CommandLineLinker

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.