Class GccLinker

All Implemented Interfaces:
Cloneable, Linker, Processor

public class GccLinker extends AbstractLdLinker
Adapter for the GCC linker
  • Field Details

    • discardFiles

      private static final String[] discardFiles
    • objFiles

      private static final String[] objFiles
    • libtoolObjFiles

      private static final String[] libtoolObjFiles
    • linkerOptions

      private static String[] linkerOptions
    • dllLinker

      private static final GccLinker dllLinker
    • instance

      private static final GccLinker instance
    • machBundleLinker

      private static final GccLinker machBundleLinker
    • machDllLinker

      private static final GccLinker machDllLinker
    • libDirs

      private File[] libDirs
  • Constructor Details

  • Method Details

    • getInstance

      public static GccLinker getInstance()
    • addImpliedArgs

      protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)
      Overrides:
      addImpliedArgs in class AbstractLdLinker
    • 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.
      Overrides:
      decorateLinkerOption in class CommandLineLinker
      Parameters:
      buf - buffer that may be used and abused in the decoration process, must not be null.
      arg - linker argument
    • getLibraryPath

      public File[] getLibraryPath()
      Returns library path.
      Specified by:
      getLibraryPath in interface Linker
      Overrides:
      getLibraryPath in class AbstractLdLinker
    • getLinker

      public Linker getLinker(LinkType type)
      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