/[gentoo-x86]/eclass/ELT-patches/as-needed/2.2.6
Gentoo

Contents of /eclass/ELT-patches/as-needed/2.2.6

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat May 16 14:21:13 2009 UTC (5 years, 6 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Pass --no-as-needed as well as --as-needed otherwise blacklisting will fail. Closes bug #269933.

1 loki_val 1.1 --- ltmain.sh.orig 2009-04-18 14:37:16.000000000 +0200
2     +++ ltmain.sh 2009-04-18 14:40:08.000000000 +0200
3     @@ -4721,10 +4721,15 @@
4     IFS="$save_ifs"
5     func_stripname ' ' '' "$arg"
6     arg=$func_stripname_result
7     ;;
8    
9 flameeyes 1.2 + -Wl,--as-needed|-Wl,--no-as-needed)
10 loki_val 1.1 + deplibs="$deplibs $arg"
11     + continue
12     + ;;
13     +
14     -Wl,*)
15     func_stripname '-Wl,' '' "$arg"
16     args=$func_stripname_result
17     arg=
18     save_ifs="$IFS"; IFS=','
19     @@ -5075,10 +5080,19 @@
20    
21     for deplib in $libs; do
22     lib=
23     found=no
24     case $deplib in
25 flameeyes 1.2 + -Wl,--as-needed|-Wl,--no-as-needed)
26 loki_val 1.1 + if test "$linkmode,$pass" = "prog,link"; then
27     + compile_deplibs="$deplib $compile_deplibs"
28     + finalize_deplibs="$deplib $finalize_deplibs"
29     + else
30     + deplibs="$deplib $deplibs"
31     + fi
32     + continue
33     + ;;
34     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
35     if test "$linkmode,$pass" = "prog,link"; then
36     compile_deplibs="$deplib $compile_deplibs"
37     finalize_deplibs="$deplib $finalize_deplibs"
38     else

  ViewVC Help
Powered by ViewVC 1.1.20