attempt to fix pkgconfig on windows for static builds

v1.26
Brad House 10 months ago
parent e5ee85a8ad
commit 8a9a4ad14d
  1. 1
      ares-cvs
  2. 2
      configure.ac
  3. 2
      libcares.pc.in

@ -0,0 +1 @@
ares-cvs

@ -200,6 +200,7 @@ if test "x$enable_shared" = "xno" -a "x$enable_static" = "xyes" ; then
AC_MSG_CHECKING([whether we need CARES_STATICLIB definition])
if test "$ac_cv_native_windows" = "yes" ; then
AX_APPEND_FLAG([-DCARES_STATICLIB], [AM_CPPFLAGS])
PKGCONFIG_CFLAGS="-DCARES_STATLICLIB"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
@ -906,6 +907,7 @@ AM_CONDITIONAL(BUILD_TESTS, test "x$build_tests" = "xyes")
AC_SUBST(AM_CFLAGS)
AC_SUBST(AM_CPPFLAGS)
AC_SUBST(PKGCONFIG_CFLAGS)
AC_SUBST(BUILD_SUBDIRS)
AC_CONFIG_FILES([Makefile \

@ -17,6 +17,6 @@ Description: asynchronous DNS lookup library
Version: @VERSION@
Requires:
Requires.private:
Cflags: -I${includedir}
Cflags: -I${includedir} @PKGCONFIG_CFLAGS@
Libs: -L${libdir} -lcares
Libs.private: @CARES_PRIVATE_LIBS@

Loading…
Cancel
Save