summaryrefslogtreecommitdiffstats
path: root/package/php/php.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-05-11 17:37:46 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-05-11 17:37:46 +0200
commit5c518ff7d2fb178a4a2a97839457ac16f9b31240 (patch)
tree271ad793395dc47155f6989614220cc3335d6f69 /package/php/php.mk
parentf2435f6ddb52ad4bb21885dbf7d9395ff6428de2 (diff)
downloadbuildroot-5c518ff7d2fb178a4a2a97839457ac16f9b31240.tar.gz
buildroot-5c518ff7d2fb178a4a2a97839457ac16f9b31240.zip
php: openssl support needs to link against zlib for static linking
Fixes: http://autobuild.buildroot.net/results/490/490a9558635c90bf510b6f80cd0891fe322c3f46/ http://autobuild.buildroot.net/results/bf1/bf12eb189ab35ce00a2212695d2dbf8b8a126529/ Otherwise the configure script fails to detect openssl and bails out. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/php/php.mk')
-rw-r--r--package/php/php.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk
index 47811fff76..279ebf8ece 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -109,6 +109,11 @@ endif
ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y)
PHP_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += openssl
+# openssl needs zlib, but the configure script forgets to link against
+# it causing detection failures with static linking
+ifeq ($(BR2_STATIC_LIBS),y)
+PHP_CONF_ENV += LIBS='-lz'
+endif
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_LIBXML2),y)
OpenPOWER on IntegriCloud