summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-21 13:21:29 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-21 13:21:34 -0400
commit772705224fafc731beb69b93f48956e821d74633 (patch)
treee5f3a22edeba660b74496b3747c3392c0c1f634c /eclass/ELT-patches
parentapp-crypt/pinentry: Remove flawed revision 0.9.6-r1 (diff)
downloadgentoo-772705224fafc731beb69b93f48956e821d74633.tar.gz
gentoo-772705224fafc731beb69b93f48956e821d74633.tar.bz2
gentoo-772705224fafc731beb69b93f48956e821d74633.zip
eclass: ELT-patches: update as-needed patch for libtool-2.4.3+ #561006
Diffstat (limited to 'eclass/ELT-patches')
-rw-r--r--eclass/ELT-patches/as-needed/2.4.338
1 files changed, 38 insertions, 0 deletions
diff --git a/eclass/ELT-patches/as-needed/2.4.3 b/eclass/ELT-patches/as-needed/2.4.3
new file mode 100644
index 000000000000..a31e9edab039
--- /dev/null
+++ b/eclass/ELT-patches/as-needed/2.4.3
@@ -0,0 +1,38 @@
+--- ltmain.sh
++++ ltmain.sh
+@@ -7225,10 +7225,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=,
+@@ -7609,10 +7614,19 @@
+
+ for deplib in $libs; do
+ lib=
+ found=false
+ 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 prog,link = "$linkmode,$pass"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"