Ticket #33085: Portfile.diff

File Portfile.diff, 584 bytes (added by adfernandes (Andrew Fernandes), 12 years ago)
  • Portfile

     
    7979    reinplace -E "s|-install_name \"|&${prefix}/lib/|" \
    8080        ${worksrcpath}/tools/build/v2/tools/darwin.jam
    8181
    82     write_jam "using darwin : : ${configure.cxx} ;"
     82    if {[string length ${configure.sdkroot}] == 0} {
     83        write_jam "using darwin : : ${configure.cxx} : : ;"
     84    } else {
     85        write_jam "using darwin : : ${configure.cxx} : <compileflags>\"-isysroot ${configure.sdkroot}\" : ;"
     86    }
    8387
    8488}
    8589