termux-packages/packages/php/sapi-apache2handler-config.m4.patch

32 lines
1.3 KiB
Diff
Raw Normal View History

2020-12-06 21:35:18 +01:00
diff -uNr php-8.0.0.orig/sapi/apache2handler/config.m4 php-8.0.0/sapi/apache2handler/config.m4
--- php-8.0.0.orig/sapi/apache2handler/config.m4 2020-11-24 22:34:03.000000000 +0530
+++ php-8.0.0/sapi/apache2handler/config.m4 2020-12-06 22:10:55.658675537 +0530
@@ -64,18 +64,9 @@
fi
APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
- if test -z `$APXS -q SYSCONFDIR`; then
INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
2020-12-06 21:35:18 +01:00
-i -n php"
- else
- APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
- INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
- \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
- $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
- -S SYSCONFDIR='$APXS_SYSCONFDIR' \
2020-12-06 21:35:18 +01:00
- -i -a -n php"
- fi
2020-12-06 21:35:18 +01:00
LIBPHP_CFLAGS="-shared"
PHP_SUBST(LIBPHP_CFLAGS)
@@ -103,6 +94,8 @@
INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
;;
*)
2020-12-06 21:35:18 +01:00
+ EXTRA_LDFLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"&
+ EXTRA_LDFLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $EXTRA_LDFLAGS"
2020-12-06 21:35:18 +01:00
PHP_SELECT_SAPI(apache2handler, shared, mod_php.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS)
INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
;;