Class GppLinker
Adapter for the g++ variant of the GCC linker
- Author:
- Stephen M. Webb invalid input: '<'stephen.webb@bregmasoft.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]protected static final String[]protected static final String[]Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args) String[]addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) protected Objectclone()decorateLinkerOption(StringBuffer buf, String arg) Allows drived linker to decorate linker option.static GppLinkerFile[]Returns library path.Gets the linker for the specified link type.voidlink(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) Performs a link using a command line linkerMethods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArgumentsMethods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommandMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfigurationMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
discardFiles
-
objFiles
-
libtoolObjFiles
-
-
Constructor Details
-
GppLinker
-
-
Method Details
-
getInstance
-
addImpliedArgs
- Overrides:
addImpliedArgsin classAbstractLdLinker
-
addLibrarySets
public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) - Overrides:
addLibrarySetsin classAbstractLdLinker
-
clone
- Overrides:
clonein classAbstractProcessor- Throws:
CloneNotSupportedException
-
decorateLinkerOption
Allows drived linker to decorate linker option. Override by GppLinker to prepend a "-Wl," to pass option to through gcc to linker.- Overrides:
decorateLinkerOptionin classCommandLineLinker- Parameters:
buf- buffer that may be used and abused in the decoration process, must not be null.arg- linker argument
-
getLibraryPath
Returns library path.- Specified by:
getLibraryPathin interfaceLinker- Overrides:
getLibraryPathin classAbstractLdLinker
-
getLinker
Description copied from interface:LinkerGets the linker for the specified link type.- 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 org.apache.tools.ant.BuildException Description copied from class:CommandLineLinkerPerforms a link using a command line linker- Overrides:
linkin classCommandLineLinker- Throws:
org.apache.tools.ant.BuildException
-