Ticket #51844: qt4-SL-Libcxx-fix-revised.diff

File qt4-SL-Libcxx-fix-revised.diff, 713 bytes (added by ken-cunningham-webuse, 8 years ago)

revised qt4-mac patch

  • Portfile

    old new  
    585585
    586586    }
    587587
     588    # on Leopard and Snow Leopard with libc++ForOlderSystems installed, SDK must be unset as we can only use system libraries
     589    # also, a missing library link must be replaced for build to succeed
     590    # <https://trac.macports.org/ticket/51844>
     591    platform darwin {
     592        if {${os.major} == 9 || ${os.major} == 10} {
     593            if {${configure.cxx_stdlib} eq "libc++"} {
     594                set SDK ""
     595                configure.ldflags-append "-lobjc"
     596            }
     597        }
     598    }
     599
    588600    # set the SDK, if it was found and exists
    589601
    590602    if {[file exists ${SDK}]} {