The pgsql extension uses pcre functions but does not link against libpcre by default, as the php executable which dlopen():s the extension already links against libpcre. However, on Android this doesn't work, see https://github.com/android-ndk/ndk/issues/201 so we need to link against libpcre explicitly.