1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
Makefile.am | 4 ++--
buildconf | 1 +
configure.ac | 2 +-
libcares-static.pc.in | 11 +++++++++++
libcares.pc.in | 2 +-
5 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 364db1a..3fa6ddc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -54,7 +54,7 @@ noinst_PROGRAMS =$(PROGS)
# regular sources and headers
EXTRA_DIST = AUTHORS CHANGES README.cares Makefile.inc Makefile.dj \
Makefile.m32 Makefile.netware Makefile.msvc Makefile.Watcom $(man_MANS) \
- config-win32.h RELEASE-NOTES libcares.pc.in buildconf get_ver.awk maketgz \
+ config-win32.h RELEASE-NOTES libcares.pc.in libcares-static.pc.in buildconf get_ver.awk maketgz \
TODO ares_build.h.in cares.rc README.msvc $(MSVCFILES) \
$(CSOURCES) $(HHEADERS) config-dos.h acountry.1 adig.1 ahost.1 INSTALL.md \
CMakeLists.txt ares_build.h.cmake ares_config.h.cmake c-ares-config.cmake.in \
@@ -67,7 +67,7 @@ DIST_SUBDIRS = test
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcares.pc
-
+pkgconfig_DATA += libcares-static.pc
CARES_VERSION_INFO = -version-info 4:0:2
# This flag accepts an argument of the form current[:revision[:age]]. So,
# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
diff --git a/buildconf b/buildconf
index a779d86..2bc10e5 100755
--- a/buildconf
+++ b/buildconf
@@ -162,6 +162,7 @@ for fname in .deps \
configure \
depcomp \
libcares.pc \
+ libcares-static.pc \
libtool \
libtool.m4 \
libtool.m4.tmp \
diff --git a/configure.ac b/configure.ac
index 7e86ad6..e970960 100644
--- a/configure.ac
+++ b/configure.ac
@@ -900,6 +900,6 @@ if test "x$build_tests" = "xyes" ; then
AC_CONFIG_SUBDIRS([test])
fi
-AC_CONFIG_FILES([Makefile libcares.pc])
+AC_CONFIG_FILES([Makefile libcares.pc libcares-static.pc])
AC_OUTPUT
XC_AMEND_DISTCLEAN(['.'])
diff --git a/libcares-static.pc.in b/libcares-static.pc.in
new file mode 100644
index 0000000..4612712
--- /dev/null
+++ b/libcares-static.pc.in
@@ -0,0 +1,11 @@
+#***************************************************************************
+# Project ___ __ _ _ __ ___ ___
+# / __|____ / _` | '__/ _ \/ __|
+# | (_|_____| (_| | | | __/\__ \
+# \___| \__,_|_| \___||___/
+#
+Name: c-ares-static
+URL: http://daniel.haxx.se/projects/c-ares/
+Description: asynchronous DNS lookup library
+Version: @VERSION@
+Cflags: -DCARES_STATICLIB
diff --git a/libcares.pc.in b/libcares.pc.in
index e757c1b..99fdbba 100644
--- a/libcares.pc.in
+++ b/libcares.pc.in
@@ -14,7 +14,7 @@ URL: http://daniel.haxx.se/projects/c-ares/
Description: asynchronous DNS lookup library
Version: @VERSION@
Requires:
-Requires.private:
+Requires.private: libcares-static
Cflags: -I${includedir} @CPPFLAG_CARES_STATICLIB@
Libs: -L${libdir} -lcares
Libs.private: @CARES_PRIVATE_LIBS@
|