Binutils version 2.20 - How to Download and Install on Mac OS X
Thursday the 18th of March, 2010

    binutils  most recent diff


    version 2.20

      View the most recent changes for the binutils port at: binutils.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for binutils.
      The raw portfile for binutils 2.20 is located here:
      http://binutils.darwinports.com/dports/devel/binutils/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/binutils


      The binutils Portfile 60739 2009-11-21 12:15:28Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: binutils
      Version: 2.20
      Revision: 1

      Description: FSF Binutils for native development.
      Long Description: Free Software Foundation development toolchain ("binutils") for native development. Tools are prefixed with g to avoid conflicts with original tools.
      Platform: darwin
      Category: devel
      Maintainers: nomaintainer
      Homepage: http://www.gnu.org/software/binutils/binutils.html
      Master Sites: gnu:binutils
      use_bzip2 yes
      Checksums: md5 ee2d3e996e9a2d669808713360fa96f8 sha1 747e7b4d94bce46587236dc5f428e5b412a590dc rmd160 284074e2453e517d036ffce2c0f3d56439e2e5c0

      depends_lib-append port:zlib port:libiconv

      configure.args --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --disable-werror --program-prefix=g --enable-shared

      # The Makefile runs configure again in subdirectories.
      # It correcty passes along most configure variables (CFLAGS, LDFLAGS, ...),
      # but seems to neglect CPPFLAGS.
      build.env-append CPPFLAGS='-I${prefix}/include'

      # Binutils violates the mtree layout by creating ${prefix}//
      destroot.violate_mtree yes

      # We don't want the etc module.
      post-extract {
      system "rm -rf ${worksrcpath}/etc"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/binutils
      % sudo port install binutils
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching binutils
      ---> Verifying checksum for binutils
      ---> Extracting binutils
      ---> Configuring binutils
      ---> Building binutils with target all
      ---> Staging binutils into destroot
      ---> Installing binutils
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using binutils with these commands:
      %  man binutils
      % apropos binutils
      % which binutils
      % locate binutils

     Where to find more information:

    Darwin Ports



    Lightbox this page.