diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2016-12-11 23:29:16 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-12-12 22:46:19 +0100 |
commit | f65e462da2b1100fb407b1409278bf42d6cc5ee3 (patch) | |
tree | 4c5edff921b63eaa780112e9e7f6d2eaa4a5db2e /package/php/php.mk | |
parent | d871352b3353881de510a06dd7f4895eced56469 (diff) | |
download | buildroot-f65e462da2b1100fb407b1409278bf42d6cc5ee3.tar.gz buildroot-f65e462da2b1100fb407b1409278bf42d6cc5ee3.zip |
php: add apache support
Continue work started by Bernd Kuhls in
https://patchwork.ozlabs.org/patch/437544/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/php/php.mk')
-rw-r--r-- | package/php/php.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk index 8c1ccef68c..e8c8f4b779 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -81,6 +81,16 @@ PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_CLI),--enable-cli,--disable-cli) PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_CGI),--enable-cgi,--disable-cgi) PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_FPM),--enable-fpm,--disable-fpm) +ifeq ($(BR2_PACKAGE_PHP_SAPI_APACHE),y) +PHP_DEPENDENCIES += apache +PHP_CONF_OPTS += --with-apxs2=$(STAGING_DIR)/usr/bin/apxs + +# Enable thread safety option if Apache MPM is event or worker +ifeq ($(BR2_PACKAGE_APACHE_MPM_EVENT)$(BR2_PACKAGE_APACHE_MPM_WORKER),y) +PHP_CONF_OPTS += --enable-maintainer-zts +endif +endif + ### Extensions PHP_CONF_OPTS += \ $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \ |