clamav/clamav-0.92-private.patch
2011-07-26 22:19:04 +02:00

34 lines
942 B
Diff

Index: clamav-0.97.2/libclamav.pc.in
===================================================================
--- clamav-0.97.2.orig/libclamav.pc.in
+++ clamav-0.97.2/libclamav.pc.in
@@ -6,6 +6,7 @@ includedir=@includedir@
Name: libclamav
Description: A GPL virus scanner
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lclamav @LIBCLAMAV_LIBS@
-Cflags: -I${includedir} @CFLAGS@
+Libs: -L${libdir} -lclamav
+Libs.private: -L${libdir} -lclamav @LIBCLAMAV_LIBS@
+Cflags: -I${includedir}
Index: clamav-0.97.2/clamav-config.in
===================================================================
--- clamav-0.97.2.orig/clamav-config.in
+++ clamav-0.97.2/clamav-config.in
@@ -54,12 +54,8 @@ while test $# -gt 0; do
usage 0
;;
- --cflags)
- echo -I@includedir@ @CFLAGS@
- ;;
-
- --libs)
- echo -L@libdir@ @LIBCLAMAV_LIBS@
+ (--cflags|--libs)
+ ${PKG_CONFIG:-pkg-config} "$1" libclamav
;;
*)