Sriram Natarajan wrote: > Hi > We would like to link PHP MySQL extension with MySQL 5.1 runtime > instead of the current MySQL 5.0 runtime. Accordingly, here is the > patch that addresses this. Can you kindly let me know if this looks ok > to you > > http://cr.opensolaris.org/~sn123202/php52-mysql51/
It looks like the MYSQLI_SHARED_LIBADD/PDO_MYSQL_SHARED_LIBADD/etc. respects settings made outside of configure. Can we make use of that to set the required MySQL runpath in Makefile.sfw instead by patching? A common pattern for deciding which libmysqlclient to link in ext/FOO/config*m4 is if --enable-maintainer-zts; then block-A else block-B fi Would it be cleaner to patch the if statement to enable that leg of code, rather than replacing block-B with block-A? (something like this: if test "$enable_maintainer_zts" = "yes" -o "$use_reentrant_mysqlclient" = "yes"; then ... )