Package net.sf.antcontrib.cpptasks.gcc
Class GppLinker
Adapter for the g++ variant of the GCC linker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]
private static final GppLinker
private static final GppLinker
private File[]
private static final String
protected static final String[]
private static String[]
private static final GppLinker
private static final GppLinker
protected static final String[]
private 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 void
addImpliedArgs
(boolean debug, LinkType linkType, Vector args) String[]
addLibrarySets
(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) decorateLinkerOption
(StringBuffer buf, String arg) Allows drived linker to decorate linker option.static GppLinker
File[]
Returns library path.Gets the linker for the specified link type.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
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
discardFiles
-
objFiles
-
dllLinker
-
libPrefix
- See Also:
-
libtoolObjFiles
-
linkerOptions
-
instance
-
machDllLinker
-
machPluginLinker
-
libDirs
-
runtimeLibrary
-
-
Constructor Details
-
GppLinker
-
-
Method Details
-
getInstance
-
addImpliedArgs
- Overrides:
addImpliedArgs
in classAbstractLdLinker
-
addLibrarySets
public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) - Overrides:
addLibrarySets
in classAbstractLdLinker
-
decorateLinkerOption
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 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:
getLibraryPath
in interfaceLinker
- Overrides:
getLibraryPath
in classAbstractLdLinker
-
getLinker
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
-