net.sf.antcontrib.cpptasks.gcc
Class GppLinker
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractLinker
net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
net.sf.antcontrib.cpptasks.gcc.GppLinker
- All Implemented Interfaces:
- Cloneable, Linker, Processor
public class GppLinker
- extends AbstractLdLinker
Adapter for the g++ variant of the GCC linker
- Author:
- Stephen M. Webb
Methods 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, prepareArguments |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker |
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand |
discardFiles
protected static final String[] discardFiles
objFiles
protected static final String[] objFiles
libtoolObjFiles
protected static final String[] libtoolObjFiles
GppLinker
protected GppLinker(String command,
String[] extensions,
String[] ignoredExtensions,
String outputPrefix,
String outputSuffix,
boolean isLibtool,
GppLinker libtoolLinker)
getInstance
public static GppLinker getInstance()
addImpliedArgs
protected void addImpliedArgs(boolean debug,
LinkType linkType,
Vector args)
- Overrides:
addImpliedArgs
in class AbstractLdLinker
addLibrarySets
public String[] addLibrarySets(CCTask task,
LibrarySet[] libsets,
Vector preargs,
Vector midargs,
Vector endargs)
- Overrides:
addLibrarySets
in class AbstractLdLinker
decorateLinkerOption
public String decorateLinkerOption(StringBuffer buf,
String arg)
- Allows drived linker to decorate linker option. Override by GppLinker to
prepend a "-Wl," to pass option to through gcc to linker.
- Overrides:
decorateLinkerOption
in class CommandLineLinker
- Parameters:
buf
- buffer that may be used and abused in the decoration process,
must not be null.arg
- linker argument
getLibraryPath
public File[] getLibraryPath()
- Returns library path.
- Specified by:
getLibraryPath
in interface Linker
- Overrides:
getLibraryPath
in class AbstractLdLinker
getLinker
public Linker getLinker(LinkType type)
- Description copied from interface:
Linker
- Gets the linker for the specified link type.
- Returns:
- appropriate linker or null, will return this if this linker can
handle the specified link type
Copyright © 2001-2011. All Rights Reserved.