From 9d99f33602237f7ee189efc7056ba4c6205699b3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Apr 2020 09:14:43 +0200 Subject: [PATCH 1/2] fix lib name for PHP 8 --- auto/modules/php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auto/modules/php b/auto/modules/php index e2e5498..dd31a52 100644 --- a/auto/modules/php +++ b/auto/modules/php @@ -100,7 +100,11 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then `${NXT_PHP_CONFIG} --libs`" else - NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}" + if [ ${NXT_PHP_MAJOR_VERSION} -ge 8 ]; then + NXT_PHP_LIB="-lphp" + else + NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}" + fi if [ "$NXT_PHP_LIB_PATH" != "" ]; then # "php-config --ldflags" does not contain path to libphp, but -- 2.25.2