summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/php
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-05-30 18:31:26 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-05-30 18:31:26 +0300
commite54fb892a44705c5d6f81e0351070e368a6b38f1 (patch)
tree7628defba94db242fea926fc8b707795dfdc8b74 /auto/modules/php
parent38e40fa8577046182cd25536618a746ffa692499 (diff)
downloadunit-e54fb892a44705c5d6f81e0351070e368a6b38f1.tar.gz
unit-e54fb892a44705c5d6f81e0351070e368a6b38f1.tar.bz2
PHP: fixed building on MacOSX with --ld-opt= option.
Diffstat (limited to 'auto/modules/php')
-rw-r--r--auto/modules/php6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto/modules/php b/auto/modules/php
index 4d29fb27..bfb45264 100644
--- a/auto/modules/php
+++ b/auto/modules/php
@@ -87,13 +87,15 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
fi
NXT_PHP_LIB="$NXT_PHP_LIB_PATH/libphp${NXT_PHP_VERSION%%.*}.a"
- NXT_PHP_LDFLAGS="`${NXT_PHP_CONFIG} --libs`"
+ NXT_PHP_LDFLAGS="`${NXT_PHP_CONFIG} --ldflags` \
+ `${NXT_PHP_CONFIG} --libs`"
else
NXT_PHP_LIB="-lphp${NXT_PHP_VERSION%%.*}"
if [ "$NXT_PHP_LIB_PATH" != "" ]; then
- # "php-config --ldflags" does not contain path to libphp.
+ # "php-config --ldflags" does not contain path to libphp, but
+ # contains usually path to libraries required by extensions.
NXT_PHP_LDFLAGS="-L${NXT_PHP_LIB_PATH} \
-Wl,-rpath ${NXT_PHP_LIB_PATH}"
fi