fix pkg-config reporting of private libraries needed for static linking
authorYang Tse <yangsita@gmail.com>
Mon, 9 Jun 2008 01:06:48 +0000 (01:06 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 9 Jun 2008 01:06:48 +0000 (01:06 +0000)
CHANGES
RELEASE-NOTES
configure.ac
libcares.pc.in

diff --git a/CHANGES b/CHANGES
index af7e57e..d1f2de8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,10 @@
   Changelog for the c-ares project
 
+* Jun 9 2008 (Yang Tse)
+
+- Make libcares.pc generated file for pkg-config include information relative
+  to the libraries needed for the static linking of c-ares.
+
 * May 30 2008 (Yang Tse)
 
 - Brad House fixed a missing header file inclusion in adig sample program.
index 4b2eff9..bad9445 100644 (file)
@@ -1,10 +1,11 @@
 This is what's new and changed in the c-ares 1.5.3 release:
 
- o adig sample application compilation failure on some systems
+ o fix adig sample application compilation failure on some systems
+ o fix pkg-config reporting of private libraries needed for static linking
 
 Thanks go to these friendly people for their efforts and contributions:
 
- Brad House
+ Brad House, Yang Tse
  and obviously Daniel Stenberg
 
 Have fun!
index d3304ae..0cca59e 100644 (file)
@@ -930,5 +930,8 @@ if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
         [a suitable file/device to read random data from])
 fi
 
+CARES_PRIVATE_LIBS="$LIBS"
+AC_SUBST(CARES_PRIVATE_LIBS)
+
 AC_CONFIG_FILES([Makefile libcares.pc])
 AC_OUTPUT
index 82652ca..df6a0aa 100644 (file)
@@ -3,7 +3,7 @@
 #               / __|____ / _` | '__/ _ \/ __|
 #              | (_|_____| (_| | | |  __/\__ \
 #               \___|     \__,_|_|  \___||___/
-# $id: $
+# $Id$
 #
 prefix=@prefix@
 exec_prefix=@exec_prefix@
@@ -18,3 +18,4 @@ Requires:
 Requires.private: 
 Cflags: -I${includedir}
 Libs: -L${libdir} -lcares
+Libs.private: @CARES_PRIVATE_LIBS@