Browse Source
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.android-5
Fredrik Fornwall
8 years ago
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||
|
diff -u -r ../php-7.1.3/ext/pgsql/config.m4 ./ext/pgsql/config.m4
|
||||
|
--- ../php-7.1.3/ext/pgsql/config.m4 2017-03-14 14:17:47.000000000 +0100
|
||||
|
+++ ./ext/pgsql/config.m4 2017-03-30 23:24:49.664225152 +0200
|
||||
|
@@ -101,6 +101,11 @@
|
||||
|
LDFLAGS=$old_LDFLAGS |
||||
|
|
||||
|
PHP_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR, PGSQL_SHARED_LIBADD) |
||||
|
+ dnl The pgsql extension uses pcre so needs to link explicitly
|
||||
|
+ dnl against it to work on android (the php binary, which dlopen():s
|
||||
|
+ dnl this module already links to pcre, but that is not enough on
|
||||
|
+ dnl Android, see https://github.com/android-ndk/ndk/issues/201):
|
||||
|
+ PHP_ADD_LIBRARY_WITH_PATH(pcre, $PGSQL_LIBDIR, PGSQL_SHARED_LIBADD)
|
||||
|
PHP_SUBST(PGSQL_SHARED_LIBADD) |
||||
|
|
||||
|
PHP_ADD_INCLUDE($PGSQL_INCLUDE) |
Loading…
Reference in new issue