Ticket #33439: no-liblto-in-developer-dir.patch

File no-liblto-in-developer-dir.patch, 534 bytes (added by neverpanic (Clemens Lang), 13 years ago)

patch against the Portfile, linking against /usr/lib/libLTO.dylib instead

  • Portfile

     
    3939        ${worksrcpath}/ld64.xcodeproj/project.pbxproj
    4040    reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
    4141        ${worksrcpath}/ld64.xcodeproj/project.pbxproj
     42        if {[vercmp $xcodeversion 4.3] >= 0} {
     43                reinplace \
     44                        "s|\$(DEVELOPER_DIR)/usr/lib/libLTO.dylib|/usr/lib/libLTO.dylib|g" \
     45                        ${worksrcpath}/ld64.xcodeproj/project.pbxproj
     46        }
    4247}
    4348
    4449pre-build {