1 |
commit: 772705224fafc731beb69b93f48956e821d74633 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 21 17:21:29 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 21 17:21:34 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77270522 |
7 |
|
8 |
eclass: ELT-patches: update as-needed patch for libtool-2.4.3+ #561006 |
9 |
|
10 |
eclass/ELT-patches/as-needed/2.4.3 | 38 ++++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 38 insertions(+) |
12 |
|
13 |
diff --git a/eclass/ELT-patches/as-needed/2.4.3 b/eclass/ELT-patches/as-needed/2.4.3 |
14 |
new file mode 100644 |
15 |
index 0000000..a31e9ed |
16 |
--- /dev/null |
17 |
+++ b/eclass/ELT-patches/as-needed/2.4.3 |
18 |
@@ -0,0 +1,38 @@ |
19 |
+--- ltmain.sh |
20 |
++++ ltmain.sh |
21 |
+@@ -7225,10 +7225,15 @@ |
22 |
+ IFS=$save_ifs |
23 |
+ func_stripname ' ' '' "$arg" |
24 |
+ arg=$func_stripname_result |
25 |
+ ;; |
26 |
+ |
27 |
++ -Wl,--as-needed|-Wl,--no-as-needed) |
28 |
++ deplibs="$deplibs $arg" |
29 |
++ continue |
30 |
++ ;; |
31 |
++ |
32 |
+ -Wl,*) |
33 |
+ func_stripname '-Wl,' '' "$arg" |
34 |
+ args=$func_stripname_result |
35 |
+ arg= |
36 |
+ save_ifs=$IFS; IFS=, |
37 |
+@@ -7609,10 +7614,19 @@ |
38 |
+ |
39 |
+ for deplib in $libs; do |
40 |
+ lib= |
41 |
+ found=false |
42 |
+ case $deplib in |
43 |
++ -Wl,--as-needed|-Wl,--no-as-needed) |
44 |
++ if test "$linkmode,$pass" = "prog,link"; then |
45 |
++ compile_deplibs="$deplib $compile_deplibs" |
46 |
++ finalize_deplibs="$deplib $finalize_deplibs" |
47 |
++ else |
48 |
++ deplibs="$deplib $deplibs" |
49 |
++ fi |
50 |
++ continue |
51 |
++ ;; |
52 |
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |
53 |
+ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) |
54 |
+ if test prog,link = "$linkmode,$pass"; then |
55 |
+ compile_deplibs="$deplib $compile_deplibs" |
56 |
+ finalize_deplibs="$deplib $finalize_deplibs" |