Ticket #49814: Tiger-libtool.c-patch

File Tiger-libtool.c-patch, 1.0 KB (added by ballapete (Peter "Pete" Dyballa), 9 years ago)

The mentioned patch for Tiger

Line 
1--- misc/libtool.c~     2015-02-20 03:03:01.000000000 +0100
2+++ misc/libtool.c      2015-11-27 22:20:12.000000000 +0100
3@@ -263,9 +263,11 @@
4 static void make_table_of_contents(
5     struct arch *arch,
6     char *output);
7+#ifdef LTO_SUPPORT
8 static void save_lto_member_toc_info(
9     struct member *member,
10     void *mod);
11+#endif /* LTO_SUPPORT */
12 static int toc_name_qsort(
13     const struct toc *toc1,
14     const struct toc *toc2);
15@@ -1436,7 +1438,9 @@
16                            do{
17                                if(ofiles[i].mh != NULL ||
18                                   ofiles[i].mh64 != NULL ||
19+#ifdef LTO_SUPPORT
20                                   ofiles[i].lto != NULL ||
21+#endif /* LTO_SUPPORT */
22                                   cmd_flags.ranlib == TRUE){
23                                    add_member(ofiles + i);
24                                }
25@@ -3829,6 +3833,7 @@
26               (int)sizeof(arch->toc_ar_hdr.ar_fmag));
27 }
28 
29+#ifdef LTO_SUPPORT
30 /*
31  * save_lto_member_toc_info() saves away the table of contents info for a
32  * member that has lto_content.  This allows the lto module to be disposed of
33@@ -3861,6 +3866,7 @@
34            }
35        }
36 }
37+#endif /* LTO_SUPPORT */
38 
39 /*
40  * Function for qsort() for comparing toc structures by name.