Skip to content

Commit c155523

Browse files
committed
tweak for better compatibility when building as SCE.
(library order is important)
1 parent 6f1a0f6 commit c155523

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/pdo_mysql/config.m4

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ if test "$PHP_PDO_MYSQL" != "no"; then
8787

8888
AC_DEFINE_UNQUOTED(PDO_MYSQL_UNIX_ADDR, "$PDO_MYSQL_SOCKET", [ ])
8989

90+
91+
_SAVE_LIBS=$LIBS
92+
LIBS="$LIBS $PDO_MYSQL_LIBS"
9093
PHP_CHECK_LIBRARY(mysqlclient, mysql_query,
9194
[
9295
PHP_EVAL_LIBLINE($PDO_MYSQL_LIBS, PDO_MYSQL_SHARED_LIBADD)
@@ -95,8 +98,6 @@ if test "$PHP_PDO_MYSQL" != "no"; then
9598
],[
9699
$PDO_MYSQL_LIBS
97100
])
98-
_SAVE_LIBS=$LIBS
99-
LIBS="$LIBS $PDO_MYSQL_LIBS"
100101
AC_CHECK_FUNCS([mysql_commit mysql_stmt_prepare mysql_next_result mysql_sqlstate])
101102
LIBS=$_SAVE_LIBS
102103

0 commit comments

Comments
 (0)