Ticket #52784: Portfile.diff

File Portfile.diff, 773 bytes (added by jwhowarth, 8 years ago)

Portfile diff to allow clang-3.9 compilers to find omp.h from libomp

  • Portfile

    old new  
    1212set llvm_version        3.9
    1313set llvm_version_no_dot 39
    1414name                    llvm-${llvm_version}
    15 revision                0
     15revision                1
    1616subport                 clang-${llvm_version} { revision 1 }
    1717set suffix              mp-${llvm_version}
    1818set sub_prefix          ${prefix}/libexec/llvm-${llvm_version}
     
    362362
    363363        # http://trac.macports.org/ticket/33207
    364364        ln -s ${prefix}/libexec/ld64/ld ${destroot}${sub_prefix}/bin/ld
     365
     366        # help compiler find omp.h header installed by libomp package
     367        ln -s ${prefix}/include/libomp/omp.h ${destroot}/${sub_prefix}/lib/clang/${version}/include/omp.h
     368
    365369    }
    366370}
    367371