From 03ca86114f3f5eb66b1d81fb3aaf7c1b7835f1c3 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 14 May 2024 12:32:02 +0200 Subject: [PATCH] Add missing MYSQLND_SHARED_LIBADD substitution This is used in Makefile when building mysqlnd as shared to get zlib and crypto libraries linked in the mysqlnd.so (-lz -lcrypto). For static build these are in the resulting binary like before. --- ext/mysqlnd/config9.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/mysqlnd/config9.m4 b/ext/mysqlnd/config9.m4 index f5dd638d32b42..93f5b8f992b38 100644 --- a/ext/mysqlnd/config9.m4 +++ b/ext/mysqlnd/config9.m4 @@ -51,4 +51,5 @@ if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" PHP_NEW_EXTENSION(mysqlnd, $mysqlnd_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) PHP_INSTALL_HEADERS([ext/mysqlnd/]) + PHP_SUBST([MYSQLND_SHARED_LIBADD]) fi