net.sf.antcontrib.cpptasks.gcc.cross

Class GccLinker

public class GccLinker extends AbstractLdLinker

Adapter for the GCC linker

Author: Adam Murdoch

Constructor Summary
protected GccLinker(String command, String[] extensions, String[] ignoredExtensions, String outputPrefix, String outputSuffix, boolean isLibtool, GccLinker libtoolLinker)
Method Summary
protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args)
protected Objectclone()
StringdecorateLinkerOption(StringBuffer buf, String arg)
Allows drived linker to decorate linker option.
static GccLinkergetInstance()
File[]getLibraryPath()
Returns library path.
LinkergetLinker(LinkType type)
voidlink(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)

Constructor Detail

GccLinker

protected GccLinker(String command, String[] extensions, String[] ignoredExtensions, String outputPrefix, String outputSuffix, boolean isLibtool, GccLinker libtoolLinker)

Method Detail

addImpliedArgs

protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)

clone

protected Object clone()

decorateLinkerOption

public String decorateLinkerOption(StringBuffer buf, String arg)
Allows drived linker to decorate linker option. Override by GccLinker to prepend a "-Wl," to pass option to through gcc to linker.

Parameters: buf buffer that may be used and abused in the decoration process, must not be null. arg linker argument

getInstance

public static GccLinker getInstance()

getLibraryPath

public File[] getLibraryPath()
Returns library path.

getLinker

public Linker getLinker(LinkType type)

link

public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.