[131410] trunk/dports/devel/libunwind/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 11 13:16:22 PST 2015


Revision: 131410
          https://trac.macports.org/changeset/131410
Author:   jeremyhu at macports.org
Date:     2015-01-11 13:16:22 -0800 (Sun, 11 Jan 2015)
Log Message:
-----------
libunwind-headers: Don't use __builtin_unreachable() as it is not available pre-gcc-4.5

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

Modified: trunk/dports/devel/libunwind/Portfile
===================================================================
--- trunk/dports/devel/libunwind/Portfile	2015-01-11 17:26:35 UTC (rev 131409)
+++ trunk/dports/devel/libunwind/Portfile	2015-01-11 21:16:22 UTC (rev 131410)
@@ -6,6 +6,7 @@
 name                    libunwind
 version                 3.5.0
 revision                3
+subport libunwind-headers { revision 4 }
 epoch                   1
 categories              devel
 platforms               darwin
@@ -35,6 +36,7 @@
 }
 
 patchfiles \
+    no-builtin_unreachable.patch \
     libunwind-available.patch
 
 post-patch {
@@ -53,7 +55,7 @@
 build.dir       ${worksrcpath}/src/Unwind
 destroot.dir    ${build.dir}
 
-subport libunwind-headers {
+if {${subport} == "${name}-headers"} {
     supported_archs noarch
 
     build {}
@@ -61,9 +63,7 @@
     destroot.target installhdrs
     destroot.args \
         PREFIX="${prefix}/Developer/SDKs/Darwin${os.major}.sdk/usr"
-}
-
-if {${subport} == "${name}"} {
+} else {
     # Technically not needed, but subports will expect depending on libunwind to pull in the headers
     depends_lib-append port:libunwind-headers
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150111/73a43c61/attachment.html>


More information about the macports-changes mailing list