Ticket #35172: Portfile.patch

File Portfile.patch, 1.2 KB (added by adfernandes (Andrew Fernandes), 12 years ago)
  • Portfile

     
    3939post-patch {
    4040    reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/tools/build/v2/engine/build.sh
    4141    reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/tools/build/v2/engine/build.jam
     42    # When building i386 code with apple-gcc-4.2, boost-1.50.0 adds a '-march=i386' compiler flag
     43    # which breaks the atomic intrinsics. The earliest 32-bit intel processors that Apple made
     44    # were the Core Solo and Core Duo, so we use the "prescott" architecture for them as per
     45    # (http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Intel_Core_Solo.2FDuo.2C_Pentium_Dual-Core_T20xx.2FT21xx)
     46    # to fix broken 32-bit builds as per (https://trac.macports.org/ticket/35172).
     47    reinplace "s|-march=i386|-march=prescott|g" ${worksrcpath}/tools/build/v2/tools/gcc.jam
    4248}
    4349
    4450proc write_jam s {
     
    176182    }]
    177183}
    178184
     185default_variants +no_single +no_static
     186
    179187variant debug description {Builds debug versions of the libraries as well} {
    180188    build.args-delete   variant=release
    181189    build.args-append   variant=debug,release