[Buildroot] [PATCH 1/1] php: add --enable-mysqlnd to configure options when using mysql extensions

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Sep 7 21:55:14 UTC 2016


Floris,

Could you have a look at the below patch?

Thanks!

Thomas

On Wed,  7 Sep 2016 08:48:57 -0700, Ryan Coe wrote:
> Without this configure option, mysqli was failing to build with my
> config after commit ea1e9e03442a5b375aa2214ba92e48ebba89070a.  The build
> did not fail, however, I was unable to use mysqli in my application.
> 
> Signed-off-by: Ryan Coe <bluemrp9 at gmail.com>
> ---
>  package/php/php.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/php/php.mk b/package/php/php.mk
> index deaf56e..766f3df 100644
> --- a/package/php/php.mk
> +++ b/package/php/php.mk
> @@ -181,7 +181,7 @@ endif
>  
>  ### Native SQL extensions
>  ifeq ($(BR2_PACKAGE_PHP_EXT_MYSQLI),y)
> -PHP_CONF_OPTS += --with-mysqli
> +PHP_CONF_OPTS += --enable-mysqlnd --with-mysqli=mysqlnd
>  endif
>  ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
>  PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
> @@ -198,7 +198,7 @@ PHP_DEPENDENCIES += sqlite
>  PHP_CFLAGS += -DSQLITE_OMIT_LOAD_EXTENSION
>  endif
>  ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),y)
> -PHP_CONF_OPTS += --with-pdo-mysql
> +PHP_CONF_OPTS += --enable-mysqlnd --with-pdo-mysql=mysqlnd
>  endif
>  ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
>  PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr



-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list