summaryrefslogtreecommitdiff
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
commited5227e5d284f4a22bc82019729db9cc27505a90 (patch)
tree07bce5f784466ab085d78f9ccde8a5931b17691d /eclass/ELT-patches
parentStable for x86, wrt bug #422217 (diff)
downloadgentoo-2-ed5227e5d284f4a22bc82019729db9cc27505a90.tar.gz
gentoo-2-ed5227e5d284f4a22bc82019729db9cc27505a90.tar.bz2
gentoo-2-ed5227e5d284f4a22bc82019729db9cc27505a90.zip
update libtool as-needed patch for 2.4.x #431942 by Peter Alfredsen
Diffstat (limited to 'eclass/ELT-patches')
-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"