updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / gnome-panel-ubuntu / 99_ltmain_as-needed.patch
blobb6f9aefe35a8af0f6f2be5fb7d10200588490187
1 Index: gnome-panel-2.30.0/ltmain.sh
2 ===================================================================
3 --- gnome-panel-2.30.0.orig/ltmain.sh 2010-03-30 11:52:32.000000000 +1100
4 +++ gnome-panel-2.30.0/ltmain.sh 2010-06-03 13:58:23.833946366 +1000
5 @@ -4716,6 +4716,11 @@
6 arg=$func_stripname_result
7 ;;
9 + -Wl,--as-needed)
10 + deplibs="$deplibs $arg"
11 + continue
12 + ;;
14 -Wl,*)
15 func_stripname '-Wl,' '' "$arg"
16 args=$func_stripname_result
17 @@ -5067,6 +5072,15 @@
18 lib=
19 found=no
20 case $deplib in
21 + -Wl,--as-needed)
22 + if test "$linkmode,$pass" = "prog,link"; then
23 + compile_deplibs="$deplib $compile_deplibs"
24 + finalize_deplibs="$deplib $finalize_deplibs"
25 + else
26 + deplibs="$deplib $deplibs"
27 + fi
28 + continue
29 + ;;
30 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
31 if test "$linkmode,$pass" = "prog,link"; then
32 compile_deplibs="$deplib $compile_deplibs"