summaryrefslogtreecommitdiffstats
path: root/0001-link-with-libresolv-for-ns_parserr.patch
blob: 05e161bdc5342b003428d04cf045524ac08d986f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From edcb19e0f996a505025b4b4821db4e4b3e249220 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 30 Sep 2021 16:48:48 +0200
Subject: [PATCH] link with libresolv for ns_parserr

---
 config.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config.m4 b/config.m4
index e96b9703..d40844f6 100644
--- a/config.m4
+++ b/config.m4
@@ -439,6 +439,7 @@ if test "$PHP_MYSQL_XDEVAPI" != "no" || test "$PHP_MYSQL_XDEVAPI_ENABLED" == "ye
 	fi
 	AC_MSG_RESULT($MYSQL_XDEVAPI_PROTOBUF_INCLUDES)
 
+	PHP_CHECK_LIBRARY(resolv, ns_parserr, [PHP_ADD_LIBRARY(resolv, 1, MYSQL_XDEVAPI_SHARED_LIBADD)])
 
 	dnl compressors
 	MYSQL_XDEVAPI_RESOLVE_COMPRESSOR("$PHP_LZ4", "lz4", "lz4", "LZ4F_createCompressionContext", "lz4.h", "MYSQL_XDEVAPI_HAVE_LZ4", IS_LZ4_ENABLED)
-- 
2.31.1