Class AbstractLinker

  • All Implemented Interfaces:
    Linker, org.codehaus.plexus.logging.LogEnabled
    Direct Known Subclasses:
    ArchiveLinker, CLinker, GccLinker, TLibLinker

    public abstract class AbstractLinker
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    implements Linker
    • Field Summary

      • Fields inherited from interface org.codehaus.mojo.natives.linker.Linker

        ROLE
    • 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.Commandline createLinkerCommandLine​(java.util.List<java.io.File> objectFiles, LinkerConfiguration config)  
      private boolean isStaled​(LinkerConfiguration config, java.util.List<java.io.File> compilerOutputFiles)  
      java.io.File link​(LinkerConfiguration config, java.util.List<java.io.File> compilerOutputFiles)  
      protected java.lang.String[] transformOptionsForGcc​(java.lang.String[] options)
      Transform linker options for GCC 4.6+ compatibility.
      • Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

        enableLogging, getLogger, setupLogger, setupLogger, setupLogger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractLinker

        public AbstractLinker()
    • Method Detail

      • transformOptionsForGcc

        protected java.lang.String[] transformOptionsForGcc​(java.lang.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
      • isStaled

        private boolean isStaled​(LinkerConfiguration config,
                                 java.util.List<java.io.File> compilerOutputFiles)