summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-20 22:19:42 +0000
committerMike Frysinger <vapier@gentoo.org>2012-08-20 22:19:42 +0000
commit7f23a0bf802f07a309f122320ffac9a903fa84e4 (patch)
treec65a5bf4b5c278e75c7460107bd224a4f3ef8200 /eclass
parentStable for x86, wrt bug #422217 (diff)
downloadhistorical-7f23a0bf802f07a309f122320ffac9a903fa84e4.tar.gz
historical-7f23a0bf802f07a309f122320ffac9a903fa84e4.tar.bz2
historical-7f23a0bf802f07a309f122320ffac9a903fa84e4.zip
update libtool as-needed patch for 2.4.x #431942 by Peter Alfredsen
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ELT-patches/as-needed/2.4.238
1 files changed, 38 insertions, 0 deletions
diff --git a/eclass/ELT-patches/as-needed/2.4.2 b/eclass/ELT-patches/as-needed/2.4.2
new file mode 100644
index 000000000000..526877a6d35b
--- /dev/null
+++ b/eclass/ELT-patches/as-needed/2.4.2
@@ -0,0 +1,38 @@
+--- ltmain.sh.orig 2012-08-19 10:18:57.929178597 +0200
++++ ltmain.sh 2012-08-19 10:31:43.409388998 +0200
+@@ -5798,10 +5798,15 @@
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
++ -Wl,--as-needed|-Wl,--no-as-needed)
++ deplibs="$deplibs $arg"
++ continue
++ ;;
++
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+@@ -6158,10 +6163,19 @@
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
++ -Wl,--as-needed|-Wl,--no-as-needed)
++ if test "$linkmode,$pass" = "prog,link"; then
++ compile_deplibs="$deplib $compile_deplibs"
++ finalize_deplibs="$deplib $finalize_deplibs"
++ else
++ deplibs="$deplib $deplibs"
++ fi
++ continue
++ ;;
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"