Configure: using comma instead of space for passing -rpath value.

This variant will be more interoperable across various systems
and it's already used in Ruby module.

Otherwise, configure tests fail on NetBSD with:

  gcc: Missing argument for -Wl,-rpath
This commit is contained in:
Valentin Bartenev
2020-10-26 22:24:32 +03:00
parent 54837759f3
commit 84136eb49d
3 changed files with 3 additions and 4 deletions

View File

@@ -111,8 +111,7 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
if [ "$NXT_PHP_LIB_PATH" != "" ]; then
# "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}"
NXT_PHP_LDFLAGS="-L${NXT_PHP_LIB_PATH} -Wl,-rpath,${NXT_PHP_LIB_PATH}"
fi
fi