~ubuntu-branches/ubuntu/precise/libgnomekbd/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-03-21 13:22:31 UTC
  • mfrom: (1.3.6 upstream) (3.2.13 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321132231-zoay06noilk1thky
Tags: 2.91.91-2
* debian/libgnomekbd-common.install:
  - Install /usr/share/GConf/gsettings and /usr/share/libgnomekbd/icons
  - Add libatk1.0-dev (>= 1.32.0-2~) build-dep to be sure we have .gir file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: libgnomekbd-2.30.2/ltmain.sh
2
 
===================================================================
3
 
--- libgnomekbd-2.30.2.orig/ltmain.sh   2010-06-22 22:54:47.000000000 +0200
4
 
+++ libgnomekbd-2.30.2/ltmain.sh        2010-06-22 23:44:16.000000000 +0200
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
 
@@ -5070,6 +5075,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"