summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-08 02:27:53 +0000
committerSascha Schumann <sas@php.net>2002-10-08 02:27:53 +0000
commit2ad1a1e74602ea6bd0262af7b346c336d769dc39 (patch)
tree2de224ee65abd9c9d74419e51cd9956a85ef1453 /configure.in
parent97a3929e808fbd3644be178e10d8b30c0e4ca124 (diff)
downloadphp-git-2ad1a1e74602ea6bd0262af7b346c336d769dc39.tar.gz
add support for adding /usr/lib to the linkline by default
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"