Ticket #54289: lcxxabi.diff

File lcxxabi.diff, 1.9 KB (added by RJVB (René Bertin), 6 years ago)

libcxxabi upgrade to 4.0.0

  • lang/libcxxabi/Portfile

    old new  
    22PortGroup               compiler_blacklist_versions 1.0
    33
    44name                    libcxxabi
    5 version                 3.9.1
     5version                 4.0.0
    66epoch                   1
    77categories              lang
    88platforms               darwin
     
    2426use_xz                  yes
    2527distname                ${name}-${version}.src
    2628
    27 checksums               rmd160  fe3ed237640b0c1a8f8ce3b2654f78005308f1cd \
    28                         sha256  920d8be32e6f5574a3fb293f93a31225eeba15086820fcb942155bf50dc029e2
     29checksums               rmd160  1008ed2aa387cb09779ab1038b8f7c3f5d40e33e \
     30                        sha256  dca9cb619662ad2d3a0d685c4366078345247218c3702dd35bcaaa23f63481d8
    2931
    3032set roots_path ${prefix}/var/system_roots/
    3133set root_name  ${name}-${version}-${revision}
     
    3335patch.pre_args          -p1
    3436patchfiles \
    3537    0001-Update-buildit-script-to-read-EXTRA_LDFLAGS-from-the.patch \
    36     0002-Revert-Make-libc-abi-use-the-implementation-of-__num.patch
     38    patch-respect-optflags.diff
    3739
    3840variant universal {}
    3941default_variants +universal
     
    7884    # but the buildit script just builds every file in the src directory and you can't have both
    7985    post-extract {
    8086        system "rm ${worksrcpath}/src/cxa_noexception.cpp"
     87        # remove this one too (it's not included by cmake)
     88        system "rm ${worksrcpath}/src/cxa_thread_atexit.cpp"
    8189    }
    8290
    8391    if {${os.major} < 10} {
     
    102110        CXX="${configure.cxx} ${configure.cppflags}" \
    103111        RC_XBS=1 \
    104112        RC_CFLAGS="[get_canonical_archflags]" \
     113        CXXFLAGS="${configure.optflags}" \
    105114        RC_ProjectSourceVersion="${version}" \
    106115        TRIPLE="-apple-darwin${os.major}"
    107116