Changeset 110870


Ignore:
Timestamp:
Sep 8, 2013, 11:42:48 PM (6 years ago)
Author:
jeremyhu@…
Message:

gcc*: Fix a possible build failure (#40404)

Location:
trunk/dports/lang
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/gcc42/Portfile

    r110805 r110870  
    130130        # https://trac.macports.org/ticket/40098
    131131        # https://trac.macports.org/ticket/40100
    132         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     132        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    133133            delete ${destroot}${prefix}/lib/${name}/${dylib}
    134134            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc43/Portfile

    r110805 r110870  
    156156        # https://trac.macports.org/ticket/40098
    157157        # https://trac.macports.org/ticket/40100
    158         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     158        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    159159            delete ${destroot}${prefix}/lib/${name}/${dylib}
    160160            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc44/Portfile

    r110805 r110870  
    161161        # https://trac.macports.org/ticket/40098
    162162        # https://trac.macports.org/ticket/40100
    163         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     163        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    164164            delete ${destroot}${prefix}/lib/${name}/${dylib}
    165165            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc45/Portfile

    r110805 r110870  
    242242        # https://trac.macports.org/ticket/40098
    243243        # https://trac.macports.org/ticket/40100
    244         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     244        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    245245            delete ${destroot}${prefix}/lib/${name}/${dylib}
    246246            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc46/Portfile

    r110805 r110870  
    153153        # https://trac.macports.org/ticket/40098
    154154        # https://trac.macports.org/ticket/40100
    155         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     155        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    156156            delete ${destroot}${prefix}/lib/${name}/${dylib}
    157157            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc47/Portfile

    r110805 r110870  
    152152        # https://trac.macports.org/ticket/40098
    153153        # https://trac.macports.org/ticket/40100
    154         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     154        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    155155            delete ${destroot}${prefix}/lib/${name}/${dylib}
    156156            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc48/Portfile

    r110805 r110870  
    204204        # https://trac.macports.org/ticket/40098
    205205        # https://trac.macports.org/ticket/40100
    206         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     206        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    207207            delete ${destroot}${prefix}/lib/${name}/${dylib}
    208208            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
  • trunk/dports/lang/gcc49/Portfile

    r110805 r110870  
    205205        # https://trac.macports.org/ticket/40098
    206206        # https://trac.macports.org/ticket/40100
    207         if {[file exists ${prefix}/lib/libgcc/${dylib}]} {
     207        if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
    208208            delete ${destroot}${prefix}/lib/${name}/${dylib}
    209209            ln -s ${prefix}/lib/libgcc/${dylib} ${destroot}${prefix}/lib/${name}/${dylib}
Note: See TracChangeset for help on using the changeset viewer.