php: Fix building pg extensions

This commit is contained in:
Fredrik Fornwall 2017-03-26 00:52:38 +01:00
parent 0d1a1c8e58
commit 53530ad847
2 changed files with 8 additions and 2 deletions

View File

@ -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
"

View File

@ -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
}