[131021] trunk/dports/lang/libcxxabi/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 4 22:34:04 PST 2015


Revision: 131021
          https://trac.macports.org/changeset/131021
Author:   jeremyhu at macports.org
Date:     2015-01-04 22:34:04 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
libcxxabi: Only export the __Unwind* symbols from libunwind

Modified Paths:
--------------
    trunk/dports/lang/libcxxabi/Portfile

Modified: trunk/dports/lang/libcxxabi/Portfile
===================================================================
--- trunk/dports/lang/libcxxabi/Portfile	2015-01-05 05:22:20 UTC (rev 131020)
+++ trunk/dports/lang/libcxxabi/Portfile	2015-01-05 06:34:04 UTC (rev 131021)
@@ -5,7 +5,7 @@
 
 name                    libcxxabi
 version                 3.5.0
-revision                1
+revision                2
 epoch                   1
 categories              lang
 platforms               darwin
@@ -72,7 +72,9 @@
             port:libmacho
 
         pre-build {
-            system "nm -g ${prefix}/lib/libmacho.a 2> /dev/null | grep ' \[DST\] ' | awk '{print \$3}' > ${worksrcpath}/unexported_symbols"
+            system "nm -g ${prefix}/lib/libmacho.a 2> /dev/null | grep ' \[DST\] ' | awk '{print \$3}' > ${worksrcpath}/unexported_symbols_macho"
+            system "nm -g ${prefix}/lib/libunwind.a 2> /dev/null | grep ' \[DST\] ' | awk '{print \$3}' | grep -v '^__Unwind' > ${worksrcpath}/unexported_symbols_unwind"
+            system "cat ${worksrcpath}/unexported_symbols_macho ${worksrcpath}/unexported_symbols_unwind > ${worksrcpath}/unexported_symbols"
         }
 
         build.env-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/bba0f8e0/attachment.html>


More information about the macports-changes mailing list