Class GccLinker

    • Field Detail

      • discardFiles

        private static final java.lang.String[] discardFiles
      • objFiles

        private static final java.lang.String[] objFiles
      • dllLinker

        private static final GccLinker dllLinker
      • instance

        private static final GccLinker instance
      • libtoolObjFiles

        private static final java.lang.String[] libtoolObjFiles
      • linkerOptions

        private static java.lang.String[] linkerOptions
      • machBundleLinker

        private static final GccLinker machBundleLinker
      • machDllLinker

        private static final GccLinker machDllLinker
      • libDirs

        private java.io.File[] libDirs
    • 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()
      • clone

        protected java.lang.Object clone()
                                  throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class AbstractProcessor
        Throws:
        java.lang.CloneNotSupportedException
      • 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
      • superlink

        private void superlink​(CCTask task,
                               java.io.File outputFile,
                               java.lang.String[] sourceFiles,
                               CommandLineLinkerConfiguration config)
                        throws org.apache.tools.ant.BuildException
        Throws:
        org.apache.tools.ant.BuildException