[95845] trunk/dports/devel/boost/Portfile

adfernandes at macports.org adfernandes at macports.org
Tue Jul 24 09:31:24 PDT 2012


Revision: 95845
          https://trac.macports.org/changeset/95845
Author:   adfernandes at macports.org
Date:     2012-07-24 09:31:23 -0700 (Tue, 24 Jul 2012)
Log Message:
-----------
devel/boost: fix 32-bit build march=i386 flag #35172; make default variant no_single and no_static to cut build time

Modified Paths:
--------------
    trunk/dports/devel/boost/Portfile

Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile	2012-07-24 16:26:00 UTC (rev 95844)
+++ trunk/dports/devel/boost/Portfile	2012-07-24 16:31:23 UTC (rev 95845)
@@ -39,6 +39,12 @@
 post-patch {
     reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/tools/build/v2/engine/build.sh
     reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/tools/build/v2/engine/build.jam
+    # When building i386 code with apple-gcc-4.2, boost-1.50.0 adds a '-march=i386' compiler flag
+    # which breaks the atomic intrinsics. The earliest 32-bit intel processors that Apple made
+    # were the Core Solo and Core Duo, so we use the "prescott" architecture for them as per
+    # (http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Intel_Core_Solo.2FDuo.2C_Pentium_Dual-Core_T20xx.2FT21xx)
+    # to fix broken 32-bit builds as per (https://trac.macports.org/ticket/35172).
+    reinplace "s|-march=i386|-march=prescott|g" ${worksrcpath}/tools/build/v2/tools/gcc.jam
 }
 
 proc write_jam s {
@@ -176,6 +182,8 @@
     }]
 }
 
+default_variants +no_single +no_static
+
 variant debug description {Builds debug versions of the libraries as well} {
     build.args-delete   variant=release
     build.args-append   variant=debug,release
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120724/e6591227/attachment.html>


More information about the macports-changes mailing list