~ubuntu-desktop/gvfs/ubuntu

« back to all changes in this revision

Viewing changes to debian/patches/99_ltmain_as-needed.patch

  • Committer: Martin Pitt
  • Date: 2010-03-23 20:00:29 UTC
  • Revision ID: martin.pitt@canonical.com-20100323200029-7bl7ok6wefwvpuuh
abandon branch in favor of lp:ubuntu/gvfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: gvfs-1.5.1/ltmain.sh
2
 
===================================================================
3
 
--- gvfs-1.5.1.orig/ltmain.sh   2009-10-19 14:18:27.000000000 +0200
4
 
+++ gvfs-1.5.1/ltmain.sh        2009-12-05 14:53:11.000000000 +0100
5
 
@@ -4716,6 +4716,11 @@
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
 
@@ -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"