Ticket #35172: Portfile.patch
File Portfile.patch, 1.2 KB (added by adfernandes (Andrew Fernandes), 12 years ago) |
---|
-
Portfile
39 39 post-patch { 40 40 reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/tools/build/v2/engine/build.sh 41 41 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 42 48 } 43 49 44 50 proc write_jam s { … … 176 182 }] 177 183 } 178 184 185 default_variants +no_single +no_static 186 179 187 variant debug description {Builds debug versions of the libraries as well} { 180 188 build.args-delete variant=release 181 189 build.args-append variant=debug,release