Class GccLinker
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.cross.sparc_sun_solaris2.GccLinker
Adapter for the GCC linker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
private static final GccLinker
private static final GccLinker
private File[]
private static final String[]
private static String[]
private static final GccLinker
private static final GccLinker
private 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 void
addImpliedArgs
(boolean debug, LinkType linkType, Vector args) decorateLinkerOption
(StringBuffer buf, String arg) Allows drived linker to decorate linker option.static GccLinker
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, addLibrarySets, 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
-
libtoolObjFiles
-
linkerOptions
-
dllLinker
-
instance
-
machBundleLinker
-
machDllLinker
-
libDirs
-
-
Constructor Details
-
GccLinker
-
-
Method Details
-
getInstance
-
addImpliedArgs
- Overrides:
addImpliedArgs
in classAbstractLdLinker
-
decorateLinkerOption
Allows drived linker to decorate linker option. Override by GccLinker 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
-