Ticket #33201: Portfile-avrbinutils.diff

File Portfile-avrbinutils.diff, 1.3 KB (added by titus@…, 12 years ago)

patch to upgrade avr-binutils to 2.22

  • Portfile

     
    22
    33PortSystem                      1.0
    44name                            avr-binutils
    5 version                         2.20
    6 revision                        1
     5version                         2.22
    76
    87# Parameters for this port.
    98set crossgcc-target avr
     
    1514categories                      cross devel
    1615maintainers                     nomaintainer
    1716homepage                        http://www.gnu.org/software/binutils/binutils.html
    18 master_sites            gnu:binutils \
    19                                         ftp://ftp.kernel.org/pub/linux/devel/binutils/ \
    20                                         http://ftp.kernel.org/pub/linux/devel/binutils/
     17master_sites                    gnu:binutils
    2118distname                        binutils-${version}
    2219use_bzip2                       yes
    23 checksums                       md5     ee2d3e996e9a2d669808713360fa96f8 \
    24                                         sha1    747e7b4d94bce46587236dc5f428e5b412a590dc \
    25                                         rmd160  284074e2453e517d036ffce2c0f3d56439e2e5c0
     20checksums                       md5     ee0f10756c84979622b992a4a61ea3f5          \
     21                                        sha1    65b304a0b9a53a686ce50a01173d1f40f8efe404 \
     22                                        rmd160  34cebe4cdca9480d5dc6f6b00b052c48c8ac30dc
    2623
    2724depends_lib                 port:gettext
    2825
     
    158155
    159156post-destroot {
    160157    file rename "${destroot}/${prefix}/lib/libiberty.a" "${destroot}/${prefix}/avr/host/lib/"
     158# For LTO optimization: With LTO enabled, collect2 searches for avr-ld
     159    ln -sf "${prefix}/avr/bin/ld" "${destroot}/${prefix}/avr/bin/avr-ld"
    161160}