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
-
-
Constructor Summary
Constructors Constructor Description AbstractLinker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.codehaus.plexus.util.cli.CommandlinecreateLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config)Filelink(LinkerConfiguration config, List<File> compilerOutputFiles)protected String[]transformOptionsForGcc(String[] options)Transform linker options for GCC 4.6+ compatibility.
-
-
-
Method Detail
-
createLinkerCommandLine
protected abstract org.codehaus.plexus.util.cli.Commandline createLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config) throws NativeBuildException
- Throws:
NativeBuildException
-
transformOptionsForGcc
protected String[] transformOptionsForGcc(String[] options)
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
-
-