1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/unit-php83/phpver.patch
2023-09-03 21:48:00 +02:00

15 lines
500 B
Diff

--- a/auto/modules/php
+++ b/auto/modules/php
@@ -102,11 +102,7 @@
`${NXT_PHP_CONFIG} --libs`"
else
- if [ $NXT_PHP_MAJOR_VERSION -ge 8 ]; then
- NXT_PHP_LIB="-lphp"
- else
- NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}"
- fi
+ NXT_PHP_LIB="-lphp${NXT_PHP_MAJOR_VERSION}${NXT_PHP_MINOR_VERSION}"
if [ "$NXT_PHP_LIB_PATH" != "" ]; then
# "php-config --ldflags" does not contain path to libphp, but