Changeset 98735


Ignore:
Timestamp:
Oct 14, 2012, 2:37:17 AM (12 years ago)
Author:
landonf@…
Message:

Install libiberty and libbfd in a target-specific directory, rather than disabling their installation outright. This allows for their use by other ports (such as simulavr, which requires the avr-binutils libiberty and libbfd).
I've verified that this works with all ports that use the crossbinutils port group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/crossbinutils-1.0.tcl

    r96776 r98735  
    103103        }
    104104
    105         # Do not install libiberty
    106         reinplace {/^install:/s/ .*//} ${worksrcpath}/libiberty/Makefile.in
     105        # Install target-compatible libbfd/libiberty in the target's directory
     106        reinplace "s|bfdlibdir=.*|bfdlibdir='${prefix}/${crossbinutils.target}/host/lib'|g" \
     107                ${worksrcpath}/bfd/configure                                \
     108                ${worksrcpath}/opcodes/configure
     109        reinplace "s|bfdincludedir=.*|bfdincludedir='${prefix}/${crossbinutils.target}/host/include'|g"  \
     110                ${worksrcpath}/bfd/configure                                             \
     111                ${worksrcpath}/opcodes/configure
     112
     113        reinplace "s|\$(libdir)|\"${prefix}/${crossbinutils.target}/host/lib\"|g" \
     114                ${worksrcpath}/libiberty/Makefile.in
     115        reinplace "s|\$(MULTIOSDIR)||g" \
     116                ${worksrcpath}/libiberty/Makefile.in
    107117    }
    108118
     
    118128    configure.args \
    119129        --target=${target} \
    120         --program-prefix=${target}-
     130        --program-prefix=${target}- \
     131        --enable-install-libiberty \
     132        --enable-install-libbfd
    121133
    122134    build.dir ${workpath}/build
Note: See TracChangeset for help on using the changeset viewer.