[143913] trunk/dports/devel/cctools

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 26 10:35:38 PST 2015


Revision: 143913
          https://trac.macports.org/changeset/143913
Author:   jeremyhu at macports.org
Date:     2015-12-26 10:35:38 -0800 (Sat, 26 Dec 2015)
Log Message:
-----------
cctools: Fix build without LTO (#49814)

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

Added Paths:
-----------
    trunk/dports/devel/cctools/files/cctools-877-no-lto.patch

Modified: trunk/dports/devel/cctools/Portfile
===================================================================
--- trunk/dports/devel/cctools/Portfile	2015-12-26 18:04:01 UTC (rev 143912)
+++ trunk/dports/devel/cctools/Portfile	2015-12-26 18:35:38 UTC (rev 143913)
@@ -38,7 +38,8 @@
     cctools-839-static-dis_info.patch \
     PR-12400897.patch \
     cctools-862-prunetrie.patch \
-    not-clang.patch
+    not-clang.patch \
+    cctools-877-no-lto.patch
 
 variant universal {}
 

Added: trunk/dports/devel/cctools/files/cctools-877-no-lto.patch
===================================================================
--- trunk/dports/devel/cctools/files/cctools-877-no-lto.patch	                        (rev 0)
+++ trunk/dports/devel/cctools/files/cctools-877-no-lto.patch	2015-12-26 18:35:38 UTC (rev 143913)
@@ -0,0 +1,40 @@
+--- misc/libtool.c~	2015-02-20 03:03:01.000000000 +0100
++++ misc/libtool.c	2015-11-27 22:20:12.000000000 +0100
+@@ -263,9 +263,11 @@
+ static void make_table_of_contents(
+     struct arch *arch,
+     char *output);
++#ifdef LTO_SUPPORT
+ static void save_lto_member_toc_info(
+     struct member *member,
+     void *mod);
++#endif /* LTO_SUPPORT */
+ static int toc_name_qsort(
+     const struct toc *toc1,
+     const struct toc *toc2);
+@@ -1436,7 +1438,9 @@
+ 			    do{
+ 				if(ofiles[i].mh != NULL ||
+ 				   ofiles[i].mh64 != NULL ||
++#ifdef LTO_SUPPORT
+ 				   ofiles[i].lto != NULL ||
++#endif /* LTO_SUPPORT */
+ 				   cmd_flags.ranlib == TRUE){
+ 				    add_member(ofiles + i);
+ 				}
+@@ -3829,6 +3833,7 @@
+ 	       (int)sizeof(arch->toc_ar_hdr.ar_fmag));
+ }
+ 
++#ifdef LTO_SUPPORT
+ /*
+  * save_lto_member_toc_info() saves away the table of contents info for a
+  * member that has lto_content.  This allows the lto module to be disposed of
+@@ -3861,6 +3866,7 @@
+ 	    }
+ 	}
+ }
++#endif /* LTO_SUPPORT */
+ 
+ /*
+  * Function for qsort() for comparing toc structures by name.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151226/b425a7ae/attachment.html>


More information about the macports-changes mailing list