aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-06-28 13:20:07 -0400
committerAnthony G. Basile <blueness@gentoo.org>2016-06-28 13:20:07 -0400
commit74d885ce487911cae6b2d4c596d98dc25d2865a6 (patch)
tree2efc8b211f30eab5d561e78d2ff95cb128bbd21e /eclass/ELT-patches/as-needed/1.5.26
parentsys-devel/libtool: add m4/libtool.m4 patch for ppc64le #581314 (diff)
downloadppc64le-74d885ce487911cae6b2d4c596d98dc25d2865a6.tar.gz
ppc64le-74d885ce487911cae6b2d4c596d98dc25d2865a6.tar.bz2
ppc64le-74d885ce487911cae6b2d4c596d98dc25d2865a6.zip
eclass/libtool.eclass + ELT-patches: copy from tree
Diffstat (limited to 'eclass/ELT-patches/as-needed/1.5.26')
-rw-r--r--eclass/ELT-patches/as-needed/1.5.2638
1 files changed, 38 insertions, 0 deletions
diff --git a/eclass/ELT-patches/as-needed/1.5.26 b/eclass/ELT-patches/as-needed/1.5.26
new file mode 100644
index 0000000..6836c55
--- /dev/null
+++ b/eclass/ELT-patches/as-needed/1.5.26
@@ -0,0 +1,38 @@
+--- ltmain.sh.orig 2009-04-18 16:51:52.000000000 +0200
++++ ltmain.sh 2009-04-18 16:55:05.000000000 +0200
+@@ -1812,10 +1812,15 @@
+ done
+ IFS="$save_ifs"
+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ ;;
+
++ -Wl,--as-needed|-Wl,--no-as-needed)
++ deplibs="$deplibs $arg"
++ continue
++ ;;
++
+ -Wl,*)
+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+@@ -2152,10 +2157,19 @@
+ fi
+ 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)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else