Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/3] package/php: add option to force building the shared library
Date: Sat, 23 Nov 2019 12:20:33 -0800	[thread overview]
Message-ID: <20191123202034.1397950-3-aduskett@gmail.com> (raw)
In-Reply-To: <20191123202034.1397950-1-aduskett@gmail.com>

From: Adam Duskett <Aduskett@gmail.com>

The uWSGI plugin requires libphp7.so to build. This option forces PHP to build
the libphp7.so file.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/php/Config.in | 9 +++++++++
 package/php/php.mk    | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/package/php/Config.in b/package/php/Config.in
index 2469573541..f2ccf8a5c4 100644
--- a/package/php/Config.in
+++ b/package/php/Config.in
@@ -19,6 +19,15 @@ config BR2_PACKAGE_PHP
 
 if BR2_PACKAGE_PHP
 
+config BR2_PACKAGE_PHP_BUILD_SHARED_LIBRARY
+	bool "Build the shared library"
+	depends on !BR2_STATIC_LIBS
+	help
+	  Build the libphp7.so file.
+
+comment "Building the shared library needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_PHP_SAPI_APACHE
 	bool "Apache interface"
 	depends on BR2_PACKAGE_APACHE
diff --git a/package/php/php.mk b/package/php/php.mk
index 9589530101..6570fccc6f 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -122,6 +122,10 @@ PHP_CONF_OPTS += \
 	$(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \
 	$(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar)
 
+ifeq ($(BR2_PACKAGE_PHP_BUILD_SHARED_LIBRARY),y)
+PHP_CONF_OPTS += --enable-embed=shared
+endif
+
 ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y)
 PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr
 PHP_DEPENDENCIES += libmcrypt
-- 
2.23.0

  parent reply	other threads:[~2019-11-23 20:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 20:20 [Buildroot] [PATCH v2 0/3] uwsgi: new package aduskett at gmail.com
2019-11-23 20:20 ` [Buildroot] [PATCH v2 1/3] " aduskett at gmail.com
2020-02-04 12:54   ` Yann E. MORIN
2019-11-23 20:20 ` aduskett at gmail.com [this message]
2019-11-23 20:20 ` [Buildroot] [PATCH v2 3/3] package/uwsgi: add support for application types aduskett at gmail.com

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=20191123202034.1397950-3-aduskett@gmail.com \
    --to=aduskett@gmail.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