You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
895 B
39 lines
895 B
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
|
|
+
|