void-packages/srcpkgs/php8.1/patches/cross-configure.patch
Joel Beckmeyer 57f20971a5 php8.1: update to 8.1.31.
- enable fpm ACLs
- clean up patches
- generate configure locally instead of using vendored for ease of
  patching
- add user for php-fpm instead of using uncreated `http` user
2024-11-23 12:28:58 +01:00

26 lines
880 B
Diff

diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4
index 80ffd97..d8cad47 100644
--- a/ext/pdo_pgsql/config.m4
+++ b/ext/pdo_pgsql/config.m4
@@ -20,7 +20,7 @@ if test "$PHP_PDO_PGSQL" != "no"; then
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
AC_MSG_RESULT([$PG_CONFIG])
PGSQL_INCLUDE=`$PG_CONFIG --includedir`
PGSQL_LIBDIR=`$PG_CONFIG --libdir`
diff --git a/ext/pgsql/config.m4 b/ext/pgsql/config.m4
index 669a9f7..7e5bf7f 100644
--- a/ext/pgsql/config.m4
+++ b/ext/pgsql/config.m4
@@ -18,7 +18,7 @@ if test "$PHP_PGSQL" != "no"; then
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
AC_MSG_RESULT([$PG_CONFIG])
PGSQL_INCLUDE=`$PG_CONFIG --includedir`
PGSQL_LIBDIR=`$PG_CONFIG --libdir`