]> granicus.if.org Git - php/commitdiff
pdo_mysql/mysqli (native) libmysqlclient_r no-longer used
authorDaniel Black <daniel@mariadb.org>
Sun, 13 Sep 2020 04:09:49 +0000 (14:09 +1000)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 17 Sep 2020 09:27:31 +0000 (11:27 +0200)
The mysqlclient_r library exists in mysql-5.6 for compatibility only.

Later versions have it removed.

ext/mysqli/config.m4
ext/pdo_mysql/config.m4

index 38a130f4cd92e42592b3dac21095715a833b1b16..7c02546266ce034af07e52271128f01902eedeea 100644 (file)
@@ -57,9 +57,6 @@ elif test "$PHP_MYSQLI" != "no"; then
     MYSQL_LIB_CFG='--libmysqld-libs'
     dnl mysqlnd doesn't support embedded, so we have to add some extra stuff
     mysqli_extra_sources="mysqli_embedded.c"
-  elif test "$enable_maintainer_zts" = "yes"; then
-    MYSQL_LIB_CFG='--libs_r'
-    MYSQL_LIB_NAME='mysqlclient_r'
   else
     MYSQL_LIB_CFG='--libs'
   fi
index 3e37a6adec777bf40022ba79ae70d33796def891..7efa814c541e9691e737eb70b6fe06cabe210218 100755 (executable)
@@ -66,13 +66,8 @@ if test "$PHP_PDO_MYSQL" != "no"; then
       if test "x$SED" = "x"; then
         AC_PATH_PROG(SED, sed)
       fi
-      if test "$enable_maintainer_zts" = "yes"; then
-        PDO_MYSQL_LIBNAME=mysqlclient_r
-        PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
-      else
-        PDO_MYSQL_LIBNAME=mysqlclient
-        PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
-      fi
+      PDO_MYSQL_LIBNAME=mysqlclient
+      PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
       PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
     elif test -n "$PDO_MYSQL_DIR"; then
       AC_MSG_RESULT([not found])