-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(main/php): Fix pcre2 linking with php-pgsql extension
- Loading branch information
1 parent
66e2e80
commit 35c1961
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Link with pcre2 library explicitly. Otherwise, the following error is shown at runtime. | ||
dlopen failed: cannot locate symbol "pcre2_match_8" referenced by "$PREFIX/lib/php/pgsql.so" | ||
|
||
--- a/ext/pgsql/config.m4 | ||
+++ b/ext/pgsql/config.m4 | ||
@@ -7,6 +7,8 @@ | ||
the libpq paths.])]) | ||
|
||
if test "$PHP_PGSQL" != "no"; then | ||
+ PGSQL_SHARED_LIBADD=-lpcre2-8 | ||
+ PHP_SUBST(PGSQL_SHARED_LIBADD) | ||
PHP_SETUP_PGSQL([PGSQL_SHARED_LIBADD],,, [$PHP_PGSQL]) | ||
PHP_SUBST([PGSQL_SHARED_LIBADD]) | ||
|