Ticket #31604: Portfile.diff

File Portfile.diff, 959 bytes (added by howarth@…, 12 years ago)

Portfile diff to pass --disable-thread-safe and enable clang builds

  • Portfile

    old new  
    1212set patch_level     3
    1313version             ${base_version}-p${patch_level}
    1414#version             ${base_version}
     15revision                    1
    1516categories          devel math
    1617platforms           darwin
    1718license             LGPL-3+
     
    6263    patchfiles-append patch[format %02d ${i}]
    6364}
    6465
    65 # When mpfr is built with clang, trying to build gcc44/gcc45 eats up all system memory and crashes.
    66 if {${configure.compiler} == "clang"} {
    67     configure.compiler llvm-gcc-4.2
    68 }
     66# Due to radr://10291355 (llvm.org PR11111), the new tls support enabled in clang with Xcode 4.2 miscompiles mpfr. While this was fixed in Xcode 4.2.1, as the ttls support was never used prior to Xcode 4.2, the generic fix is to pass --disable-thread-safe to configure.
     67
     68configure.args  --disable-thread-safe
    6969
    7070test.run        yes
    7171test.target     check