summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 4aeff1ae79..be528307af 100644
--- a/configure.in
+++ b/configure.in
@@ -914,10 +914,16 @@ AC_SUBST(EXPANDED_LOCALSTATEDIR)
AC_SUBST(EXPANDED_PHP_CONFIG_FILE_PATH)
AC_SUBST(EXPANDED_PHP_CONFIG_FILE_SCAN_DIR)
+if test -n "$php_ldflags_add_usr_lib"; then
+ PHP_RPATHS="$PHP_RPATHS /usr/lib"
+fi
+
PHP_UTILIZE_RPATHS
-PHP_REMOVE_USR_LIB(PHP_LDFLAGS)
-PHP_REMOVE_USR_LIB(LDFLAGS)
+if test -z "$php_ldflags_add_usr_lib"; then
+ PHP_REMOVE_USR_LIB(PHP_LDFLAGS)
+ PHP_REMOVE_USR_LIB(LDFLAGS)
+fi
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"