diff --git a/packages/php/build.sh b/packages/php/build.sh index 008c2ebec..ca8c2a328 100644 --- a/packages/php/build.sh +++ b/packages/php/build.sh @@ -32,8 +32,8 @@ ac_cv_func_res_nsearch=no --with-pcre-regex=$TERMUX_PREFIX --with-readline=$TERMUX_PREFIX --with-zlib ---with-pgsql=shared ---with-pdo-pgsql=shared +--with-pgsql=shared,$TERMUX_PREFIX +--with-pdo-pgsql=shared,$TERMUX_PREFIX --enable-fpm --sbindir=$TERMUX_PREFIX/bin " diff --git a/packages/postgresql/build.sh b/packages/postgresql/build.sh index d171037e6..0c280ceae 100644 --- a/packages/postgresql/build.sh +++ b/packages/postgresql/build.sh @@ -46,3 +46,9 @@ termux_step_post_make_install() { (cd contrib/$contrib && make -s -j $TERMUX_MAKE_PROCESSES install) done } + +termux_step_post_massage() { + # Remove bin/pg_config so e.g. php doesn't try to use it, which won't + # work as it's a cross-compiled binary: + rm $TERMUX_PREFIX/bin/pg_config +}