1 |
commit: c0986555810d6795912a6a20185197c4e612bedd |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 30 12:16:13 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 12:16:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c0986555 |
7 |
|
8 |
3.3.6: add 90_all_libtool-pass-all.patch |
9 |
|
10 |
Fix shared library detection by libtool. |
11 |
Before the patch libtool was not able to see |
12 |
through linker scripts and rejected -lc and -lm existence. |
13 |
|
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
3.3.6/gentoo/90_all_libtool-pass-all.patch | 163 +++++++++++++++++++++++++++++ |
17 |
3.3.6/gentoo/README.history | 2 + |
18 |
2 files changed, 165 insertions(+) |
19 |
|
20 |
diff --git a/3.3.6/gentoo/90_all_libtool-pass-all.patch b/3.3.6/gentoo/90_all_libtool-pass-all.patch |
21 |
new file mode 100644 |
22 |
index 0000000..735c5ea |
23 |
--- /dev/null |
24 |
+++ b/3.3.6/gentoo/90_all_libtool-pass-all.patch |
25 |
@@ -0,0 +1,163 @@ |
26 |
+Unbreak libc and libm detection by libtool when those |
27 |
+are linker scripts: use file presence as a signal, |
28 |
+not the output of 'file' command on linux-gnu*. |
29 |
+ |
30 |
+Backport of upstream patch: |
31 |
+ |
32 |
+From 7f93fe7a469fb4d342d90736e801fcafb23b5a8b Mon Sep 17 00:00:00 2001 |
33 |
+From: kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> |
34 |
+Date: Wed, 24 Nov 2004 22:04:38 +0000 |
35 |
+Subject: [PATCH] 2004-11-24 Kelley Cook <kcook@×××××××.org> |
36 |
+ |
37 |
+ * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case |
38 |
+ from CVS libtool to always pass_all. |
39 |
+ * boehm-gc/configure: Regenerate. |
40 |
+ * libffi/configure: Regenerate. |
41 |
+ * libgfortran/configure: Regenerate. |
42 |
+ * libjava/configure: Regenerate. |
43 |
+ * libobjc/configure: Regenerate. |
44 |
+ * libstdc++-v3/configure: Regenerate. |
45 |
+ * zlib/configure: Regenerate. |
46 |
+ |
47 |
+ |
48 |
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91200 138bc75d-0d04-0410-961f-82ee72b054a4 |
49 |
+--- |
50 |
+ ChangeLog | 5 + |
51 |
+ boehm-gc/ChangeLog | 4 + |
52 |
+ boehm-gc/configure | 11 +- |
53 |
+ libffi/ChangeLog | 4 + |
54 |
+ libffi/configure | 11 +- |
55 |
+ libgfortran/ChangeLog | 4 + |
56 |
+ libgfortran/configure | 13 +- |
57 |
+ libjava/ChangeLog | 4 + |
58 |
+ libjava/aclocal.m4 | 2 +- |
59 |
+ libjava/configure | 322 +++++++++++++++++++++++++---------------- |
60 |
+ libobjc/ChangeLog | 4 + |
61 |
+ libobjc/configure | 13 +- |
62 |
+ libstdc++-v3/ChangeLog | 4 + |
63 |
+ libstdc++-v3/configure | 13 +- |
64 |
+ libtool.m4 | 9 +- |
65 |
+ zlib/ChangeLog.gcj | 4 + |
66 |
+ zlib/configure | 11 +- |
67 |
+ 17 files changed, 249 insertions(+), 189 deletions(-) |
68 |
+ |
69 |
+--- a/boehm-gc/configure |
70 |
++++ b/boehm-gc/configure |
71 |
+@@ -4317,13 +4317,6 @@ irix5* | irix6*) |
72 |
+ |
73 |
+ # This must be Linux ELF. |
74 |
+ linux-gnu*) |
75 |
+- case $host_cpu in |
76 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
77 |
+- lt_cv_deplibs_check_method=pass_all ;; |
78 |
+- *) |
79 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
80 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
81 |
+- esac |
82 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
83 |
++ lt_cv_deplibs_check_method=pass_all |
84 |
+ ;; |
85 |
+ |
86 |
+--- a/libffi/configure |
87 |
++++ b/libffi/configure |
88 |
+@@ -3454,13 +3454,6 @@ irix5* | irix6*) |
89 |
+ |
90 |
+ # This must be Linux ELF. |
91 |
+ linux-gnu*) |
92 |
+- case $host_cpu in |
93 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
94 |
+- lt_cv_deplibs_check_method=pass_all ;; |
95 |
+- *) |
96 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
97 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
98 |
+- esac |
99 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
100 |
++ lt_cv_deplibs_check_method=pass_all |
101 |
+ ;; |
102 |
+ |
103 |
+--- a/libjava/configure |
104 |
++++ b/libjava/configure |
105 |
+@@ -4337,13 +4347,6 @@ irix5* | irix6*) |
106 |
+ |
107 |
+ # This must be Linux ELF. |
108 |
+ linux-gnu*) |
109 |
+- case $host_cpu in |
110 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
111 |
+- lt_cv_deplibs_check_method=pass_all ;; |
112 |
+- *) |
113 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
114 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
115 |
+- esac |
116 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
117 |
++ lt_cv_deplibs_check_method=pass_all |
118 |
+ ;; |
119 |
+ |
120 |
+--- a/libobjc/configure |
121 |
++++ b/libobjc/configure |
122 |
+@@ -3269,13 +3269,6 @@ irix5* | irix6*) |
123 |
+ |
124 |
+ # This must be Linux ELF. |
125 |
+ linux-gnu*) |
126 |
+- case $host_cpu in |
127 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
128 |
+- lt_cv_deplibs_check_method=pass_all ;; |
129 |
+- *) |
130 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
131 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
132 |
+- esac |
133 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
134 |
++ lt_cv_deplibs_check_method=pass_all |
135 |
+ ;; |
136 |
+ |
137 |
+index e87d8b27130..0024e82faa2 100755 |
138 |
+--- a/libstdc++-v3/configure |
139 |
++++ b/libstdc++-v3/configure |
140 |
+@@ -3995,13 +3995,6 @@ irix5* | irix6*) |
141 |
+ |
142 |
+ # This must be Linux ELF. |
143 |
+ linux-gnu*) |
144 |
+- case $host_cpu in |
145 |
+- alpha* | hppa* | i*86 | m68* | powerpc* | sparc* | ia64* | sh* ) |
146 |
+- lt_cv_deplibs_check_method=pass_all ;; |
147 |
+- *) |
148 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
149 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
150 |
+- esac |
151 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
152 |
++ lt_cv_deplibs_check_method=pass_all |
153 |
+ ;; |
154 |
+ |
155 |
+--- a/libtool.m4 |
156 |
++++ b/libtool.m4 |
157 |
+@@ -679,13 +679,6 @@ irix5* | irix6*) |
158 |
+ |
159 |
+ # This must be Linux ELF. |
160 |
+ linux-gnu*) |
161 |
+- case $host_cpu in |
162 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
163 |
+- lt_cv_deplibs_check_method=pass_all ;; |
164 |
+- *) |
165 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
166 |
+- lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;; |
167 |
+- esac |
168 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
169 |
++ lt_cv_deplibs_check_method=pass_all |
170 |
+ ;; |
171 |
+ |
172 |
+--- a/zlib/configure |
173 |
++++ b/zlib/configure |
174 |
+@@ -3423,13 +3423,6 @@ irix5* | irix6*) |
175 |
+ |
176 |
+ # This must be Linux ELF. |
177 |
+ linux-gnu*) |
178 |
+- case $host_cpu in |
179 |
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
180 |
+- lt_cv_deplibs_check_method=pass_all ;; |
181 |
+- *) |
182 |
+- # glibc up to 2.1.1 does not perform some relocations on ARM |
183 |
+- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
184 |
+- esac |
185 |
+- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
186 |
++ lt_cv_deplibs_check_method=pass_all |
187 |
+ ;; |
188 |
+ |
189 |
|
190 |
diff --git a/3.3.6/gentoo/README.history b/3.3.6/gentoo/README.history |
191 |
index bc906b3..8cf625a 100644 |
192 |
--- a/3.3.6/gentoo/README.history |
193 |
+++ b/3.3.6/gentoo/README.history |
194 |
@@ -1,5 +1,7 @@ |
195 |
1.10 TODO |
196 |
+ 89_all_gcc-3.3.x-ucontext.patch |
197 |
+ + 90_all_libtool-pass-all.patch |
198 |
+ |
199 |
1.9 06 Apr 2015 |
200 |
R 05_all_gcc-4.3.x-siginfo.patch -> 05_all_gcc-3.3.x-siginfo.patch |
201 |
+ 10_all_gcc-3.4.6-c-parse-bison-3.patch |