From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] php: add --enable-mysqlnd to configure options when using mysql extensions
Date: Wed, 7 Sep 2016 23:55:14 +0200 [thread overview]
Message-ID: <20160907235514.1779aeb6@free-electrons.com> (raw)
In-Reply-To: <20160907154857.3147-1-bluemrp9@gmail.com>
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@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
next prev parent reply other threads:[~2016-09-07 21:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 15:48 [Buildroot] [PATCH 1/1] php: add --enable-mysqlnd to configure options when using mysql extensions Ryan Coe
2016-09-07 21:55 ` Thomas Petazzoni [this message]
2016-09-07 23:35 ` Floris Bos
2016-09-07 23:36 ` Ryan Coe
2016-09-08 0:06 ` Floris Bos
2016-09-08 15:47 ` Ryan Coe
2016-09-08 15:52 ` Thomas Petazzoni
2016-09-08 16:03 ` Floris Bos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160907235514.1779aeb6@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox