Browse Source

php: Fix building pg extensions

android-5
Fredrik Fornwall 8 years ago
parent
commit
53530ad847
  1. 4
      packages/php/build.sh
  2. 6
      packages/postgresql/build.sh

4
packages/php/build.sh

@ -32,8 +32,8 @@ ac_cv_func_res_nsearch=no
--with-pcre-regex=$TERMUX_PREFIX --with-pcre-regex=$TERMUX_PREFIX
--with-readline=$TERMUX_PREFIX --with-readline=$TERMUX_PREFIX
--with-zlib --with-zlib
--with-pgsql=shared --with-pgsql=shared,$TERMUX_PREFIX
--with-pdo-pgsql=shared --with-pdo-pgsql=shared,$TERMUX_PREFIX
--enable-fpm --enable-fpm
--sbindir=$TERMUX_PREFIX/bin --sbindir=$TERMUX_PREFIX/bin
" "

6
packages/postgresql/build.sh

@ -46,3 +46,9 @@ termux_step_post_make_install() {
(cd contrib/$contrib && make -s -j $TERMUX_MAKE_PROCESSES install) (cd contrib/$contrib && make -s -j $TERMUX_MAKE_PROCESSES install)
done 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
}

Loading…
Cancel
Save