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