1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 02:05:16 +03:00
aports/community/unit/phpver.patch
2023-02-12 02:44:54 +01: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