summarylogtreecommitdiffstats
path: root/0002-Add-static-pkg-config.patch
diff options
context:
space:
mode:
Diffstat (limited to '0002-Add-static-pkg-config.patch')
-rw-r--r--0002-Add-static-pkg-config.patch83
1 files changed, 83 insertions, 0 deletions
diff --git a/0002-Add-static-pkg-config.patch b/0002-Add-static-pkg-config.patch
new file mode 100644
index 000000000000..1999fc2cd31b
--- /dev/null
+++ b/0002-Add-static-pkg-config.patch
@@ -0,0 +1,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@