Ticket #53027: crossbinutils-1.0.tcl.diff

File crossbinutils-1.0.tcl.diff, 1.2 KB (added by mojca (Mojca Miklavec), 8 years ago)

An attempt of a patch for libiberty in crossbinutils

  • _resources/port1.0/group/crossbinutils-1.0.tcl

    diff --git a/_resources/port1.0/group/crossbinutils-1.0.tcl b/_resources/port1.0/group/crossbinutils-1.0.tcl
    index bf0bba5..7bd9c7c 100644
    a b  
    4040options crossbinutils.target
    4141
    4242proc crossbinutils.setup {target version} {
    43     global master_sites workpath worksrcpath extract.suffix
     43    global master_sites workpath worksrcpath extract.suffix prefix crossbinutils.target
    4444
    4545    crossbinutils.target ${target}
    4646
    proc crossbinutils.setup {target version} { 
    112112
    113113        reinplace "s|\$(libdir)|\"${prefix}/${crossbinutils.target}/host/lib\"|g" \
    114114            ${worksrcpath}/libiberty/Makefile.in
    115         reinplace "s|\$(MULTIOSDIR)||g" \
     115        reinplace "s|/\$(MULTIOSDIR)||g" \
    116116            ${worksrcpath}/libiberty/Makefile.in
    117117    }
    118118
    proc crossbinutils.setup {target version} { 
    129129    configure.args \
    130130        --target=${target} \
    131131        --program-prefix=${target}- \
    132         --enable-install-libiberty \
     132        --enable-install-libiberty=${prefix}/${crossbinutils.target}/host \
    133133        --enable-install-libbfd
    134134
    135135    build.dir ${workpath}/build