Package org.codehaus.mojo.natives.linker
Class AbstractLinker
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.natives.linker.AbstractLinker
- All Implemented Interfaces:
Linker,org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
ArchiveLinker
public abstract class AbstractLinker
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements Linker
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.codehaus.plexus.util.cli.CommandlinecreateLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config) link(LinkerConfiguration config, List<File> compilerOutputFiles) protected String[]transformOptionsForGcc(String[] options) Transform linker options for GCC 4.6+ compatibility.Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
AbstractLinker
public AbstractLinker()
-
-
Method Details
-
createLinkerCommandLine
protected abstract org.codehaus.plexus.util.cli.Commandline createLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config) throws NativeBuildException - Throws:
NativeBuildException
-
transformOptionsForGcc
Transform linker options for GCC 4.6+ compatibility. Options starting with "--" are linker-specific and must be prefixed with "-Wl," when using gcc/g++ as the linker driver.- Parameters:
options- the original options array- Returns:
- transformed options array with "-Wl," prefix added to linker-specific options
-
link
public File link(LinkerConfiguration config, List<File> compilerOutputFiles) throws NativeBuildException, IOException - Specified by:
linkin interfaceLinker- Throws:
NativeBuildExceptionIOException
-