~noskcaj/seahorse/3.14

« back to all changes in this revision

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

  • Committer: Robert Ancell
  • Date: 2012-05-14 03:38:04 UTC
  • Revision ID: robert.ancell@canonical.com-20120514033804-oxe1xhgrlp26d40z
Tags: 3.2.2-0ubuntu2
releasing version 3.2.2-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: seahorse-3.1.92/ltmain.sh
2
 
===================================================================
3
 
--- seahorse-3.1.92.orig/ltmain.sh      2011-09-18 08:08:46.000000000 +0200
4
 
+++ seahorse-3.1.92/ltmain.sh   2011-09-18 13:44:24.970769402 +0200
5
 
@@ -5787,6 +5787,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
 
@@ -6147,6 +6152,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"