Class GccLinker

  • All Implemented Interfaces:
    java.lang.Cloneable, Linker, Processor

    public class GccLinker
    extends AbstractLdLinker
    Adapter for the GCC linker
    Author:
    Adam Murdoch
    • Constructor Detail

      • GccLinker

        protected GccLinker​(java.lang.String command,
                            java.lang.String[] extensions,
                            java.lang.String[] ignoredExtensions,
                            java.lang.String outputPrefix,
                            java.lang.String outputSuffix,
                            boolean isLibtool,
                            GccLinker libtoolLinker)
    • Method Detail

      • getInstance

        public static GccLinker getInstance()
      • decorateLinkerOption

        public java.lang.String decorateLinkerOption​(java.lang.StringBuffer buf,
                                                     java.lang.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
      • 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