/[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.1 - (hide annotations) (download)
Sun May 3 20:03:10 2009 UTC (6 years ago) by loki_val
Branch: MAIN
Import patch from Debian http://bugs.debian.org/347650 which hacks around libtool deplib re-ordering, which inhibits -Wl,--as-needed. You have to set -Wl,--as-needed seperately in LDFLAGS for this to do any good, -Wl,--as-needed,--something-else will not do, but you can set -Wl,--something-else afterwards. Also make sure eclasses I 'own' run elibtoolize so they can reap the benefit.

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     + -Wl,--as-needed)
10     + 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     + -Wl,--as-needed)
26     + 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