summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/dependencies/libart-lgpl/debian/patches/60_libart-config-static.patch
blob: dd4fc8c2e2746592fef3dca71ea9c928d1c64b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Add --static support to libart2-config --libs to avoid -lm
Debian #375812, GNOME #531278

Index: libart-config.in
===================================================================
--- libart-config.in (revision 280)
+++ libart-config.in (working copy)
@@ -3,6 +3,8 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 exec_prefix_set=no
+libs=""
+output_libs=no
 
 usage="\
 Usage: libart-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
@@ -43,8 +45,11 @@ while test $# -gt 0; do
       echo $includes
       ;;
     --libs)
-      libdirs=-L@libdir@
-      echo $libdirs -lart_lgpl_2 -lm
+      libs="$libs -L@libdir@ -lart_lgpl_2"
+      output_libs=yes
+      ;;
+    --static)
+      libs="$libs -lm"
       ;;
     *)
       echo "${usage}" 1>&2
@@ -54,3 +59,7 @@ while test $# -gt 0; do
   shift
 done
 
+if test $output_libs = yes ; then
+    echo $libs
+fi
+