summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-06-09 01:06:48 +0000
committerYang Tse <yangsita@gmail.com>2008-06-09 01:06:48 +0000
commit4ccd0a85b129b245e890f50a021084a9062e194f (patch)
treecedb66220c6a887c3c1a6de5cf4e43fb4a1ce667
parentf953ff981cea08674f82f8934ed454b1ca1166eb (diff)
downloadc-ares-4ccd0a85b129b245e890f50a021084a9062e194f.tar.gz
c-ares-4ccd0a85b129b245e890f50a021084a9062e194f.tar.bz2
c-ares-4ccd0a85b129b245e890f50a021084a9062e194f.zip
fix pkg-config reporting of private libraries needed for static linking
-rw-r--r--CHANGES5
-rw-r--r--RELEASE-NOTES5
-rw-r--r--configure.ac3
-rw-r--r--libcares.pc.in3
4 files changed, 13 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index af7e57e..d1f2de8 100644
--- 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.
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 4b2eff9..bad9445 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -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!
diff --git a/configure.ac b/configure.ac
index d3304ae..0cca59e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/libcares.pc.in b/libcares.pc.in
index 82652ca..df6a0aa 100644
--- a/libcares.pc.in
+++ b/libcares.pc.in
@@ -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@